Navigation from the index.mdx is corrupt in groups #1748
complynx
started this conversation in
Bugs & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a group consisting of an
some/index.mdxandsome/other.mdxfiles, and I navigate tosome/index.mdxthrough links or through the menu, clicking directly onto the page — the address isexample.com/docs/some, but if I navigate to it through another level of the menu, clicking on the group itself, it will navigate toexample.com/docs/some/index.This results in corrupt behavior of the index page links, because in the first scenario all the relative links must have their parent folder included, in the second — they must not.
Solution: when removing
/indexfrom the paths, remove it without/, so that the browser will understand that the last path part is a directory.Beta Was this translation helpful? Give feedback.
All reactions