docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Sidebar doesn't respect trailingSlash settings.

Open rlconst opened this issue 1 month ago • 0 comments

Have you read the Contributing Guidelines on issues?

Prerequisites

  • [x] I'm using the latest version of Docusaurus.
  • [x] I have tried the npm run clear or yarn clear command.
  • [x] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • [x] I have tried creating a repro with https://new.docusaurus.io.
  • [x] I have read the console error message carefully (if applicable).

Description

Even with trainlingSlash=false sidebar instead of links with .html suffix shows only ids

Reproducible demo

No response

Steps to reproduce

  1. in docusaurus.config.ts set trailingSlash = false
  2. render site

Expected behavior

In sidebar link will be http://localhost:3000/docs/category/tutorial-basics/create-a-page instead of expected http://localhost:3000/docs/category/tutorial-basics/create-a-page.html. It works during navigation phase but i'll be impossible to provide permalink or refresh the page on deployed site. Node js works fine though

Actual behavior

described in expected behavior

Your environment

  • Docusaurus version used: 3.9.2
  • Operating system and version (windows 11):

Self-service

  • [ ] I'd be willing to fix this bug myself.

rlconst avatar Dec 01 '25 12:12 rlconst