You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The closest thing to this is the doc link type (see #2643). However, the doc link type doesn't redirect, but puts that content into the sidebar category page. This is non-ideal because viewers might miss that clicking on a category has important information. Especially if they're opening a category subpage from an external link.
API design
This could be done by adding a redirect link type following a similar API to the doc link type.
Have you tried building it?
I've asked in the Docusaur Discord and was told by a moderator that it's a bit tricky to do and would have to be done in an inelegant way. I was suggested to post a feature request about this.
Self-service
I'd be willing to contribute this feature to Docusaurus myself.
(I don't know enough about Docusaurus to understand how to contribute it in the best way)
Activity
slorber commentedon Apr 6, 2023
I have no idea what you mean by "redirect" or "puts that content into the sidebar category page"
The category is a link, or is not. We don't hit the server when clicking it so the concept of redirect does not make sense to me.
Consider the following structure:
Clicking on the "Guides" category will navigate to the intro doc (and not "redirect" to it)
The Intro doc will also appear as a child of the category
So you access the same doc from 2 links:
If this is not what you want, please do some mockups and provide examples using real links and sidebar configs to illustrate (ie not just text).
nishitiwari22 commentedon Sep 29, 2023
Is this issue open? I am looking to contribute to it.
Josh-Cena commentedon Sep 30, 2023
Closing because we got no feedback