wiki page in subdirectory creates double sidebar entry if parent md file exists
Summary
creating a wiki page "blah" and a page "blah/foo" creates a double entry in the right sidebar
Steps to reproduce
- Create a wiki page "blah" with any content.
- Create a wiki page "blah/foo" or any other within the "blah" directory/"namespace"
Example Project
https://gitlab.com/nerdoc/medux/wikis/Modules
What is the current bug behavior?
The "blah" page is created and gets a sidebar link. The "blah/foo" page is created, there is anoter line "blah" added to the sidebar, and beneath THAT one, there is the "foo" link created, indented. So there are two lines named "blah" in the sidebar.
What is the expected correct behavior?
if there is already a "blah" page, use that for creating the indented sub links to pages.
Relevant logs and/or screenshots
Possible fixes
Not a fix, but a consideration: A directory is not necessarily the same like the page, so blah.md must be considered as the main contend that describes blah/foo.md, blah/bar.md, and blah/baz.md - But IMHO this is a very convenient assumption and would help much to make the wikis better. This feature is NOT available in Github.