Skip to content
Discussion options

You must be logged in to vote

Hi,

The default navbar dropdown does not do anything "clever", it just links to a static URL path.

If you want it to link to an older version, you'd have to write old-version/getting-started/overview instead

For now, we don't have a way to make the dropdown link to different versions, and it's unlikely we'll add this as-is: the older/newer versions may not contain exactly the same documents, so Docusaurus should be able to handle these edge-case scenarios.

I mean if you link to "myDoc", and "/newVersion/myDoc" exists, but not "/oldVersion/myDoc". It would be odd if Docusaurus shows "myDoc" but it leads to a 404 page.

What we'd like to explore is some kind of dynamic navbar where some navb…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@ghost
Comment options

@ghost
Comment options

@slorber
Comment options

slorber Apr 6, 2021
Collaborator

@ghost
Comment options

@slorber
Comment options

slorber Apr 9, 2021
Collaborator

Comment options

You must be logged in to vote
4 replies
@idontknowjs
Comment options

@lkrell
Comment options

@lkrell
Comment options

@idontknowjs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants