Setting the current
version's path to /
freezes docsVersionDropdown
#10255
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When creating a Docusaurus site with versioning enabled, setting the
current
version'spath
to/
freezes the dynamicdocsVersionDropdown
nav bar item. The website still works fine and successfully changes the displayed version, but the dropdown loses it's ability to correctly display which version is being rendered.Reproducible demo
https://stackblitz.com/edit/github-lptjtc?file=docusaurus.config.js
Steps to reproduce
docusaurus.config.js
, and set thecurrent
version'spath
to/
docsVersionDropdown
to the nav barExpected behavior
Expected behavior should be that the version dropdown displays the
label
of the version that is being rendered on the page. This successfully happens when thepath
is changed to anything but/
.Actual behavior
The version dropdown stays stuck on the Current version. It will still successfully change which version of documentation is rendered on the site, but does not change the appearance of the dropdown.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: