-
I have a sidebar like this: module.exports = {
docs: {
'Reference': ['doc1', 'doc2', 'doc3'],
},
}; Which produces this:
I'd like to make the route (I don't want to create a route like How would I go about that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
(My own brainstorming thread, not really an answer.) I'm not even sure how I imagine Docusaurus would support this, I just feel that removing parts of URL should not lead to 404s. For example, I think that all these should render something or redirect somewhere:
Only the first one works, currently. Maybe the other two could redirect to the "closest reasonable page", like:
Another option would be to support some special file like I don't know... |
Beta Was this translation helpful? Give feedback.
-
Hi, You can control the url of each doc with the slug frontmatter, so it is already possible to create:
Not sure it's related, but we also plan to support sidebar categories linking to a doc: We don't do the redirect you ask for by default (it would be hard for us to know where to redirect to), but you can probably add it in userland. |
Beta Was this translation helpful? Give feedback.
Hi,
You can control the url of each doc with the slug frontmatter, so it is already possible to create:
Not sure it's related, but we also plan to support sidebar categories linking to a doc:
#2643
We don't do the redirect you ask for by default (it would be hard for us to know where to redirect to), but you can probably add it in userland.
There's the redirect plugin to redirect one URL to any other URL you want, and you can create content at any URL thanks to slug.