How to make siderbar tabs work when using trailingSlash:true? #1196
Unanswered
adyingdeath
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is probably a bug or misconfiguration of dynamic route In the past we simply use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using static export mode. And If I don't add a "trailingSlash:true" to the next config, the output folder will be like:
However, I need a "index.html" to deploy it. It should be like:
This can be achieved by adding "trailingSlash:true" to the next config. However, when I add this, my sidebar tabs will not work, and the root folders will not work too.
For example, I have two root folders "A" and "B". Normally, If I am reading an article in "A", the pages in "B" will not display in the sidebar. However, when "trailingSlash:true", there will be B's pages even when I am reading A's pages and the sidebar tabs will not work as well. I am thinking that it may be because "trailingSlash:true" have change the path(adding a "/" to its tail). I've seen somewhere that fumadocs's official docs site is also deployed in static mode. How do you solve this?
Is there another way where I can output correct structures without adding a "trailingSlash:true"?
Beta Was this translation helpful? Give feedback.
All reactions