Skip to content

routetree doesn't like folders named 'index' #542

@dezren39

Description

@dezren39

Describe the bug
When using pretty-url and I make a folder: index/index/index/index.md
I can access it correctly from the url bar manually,
but the sidebar doesn't send me to the right url.

If I start from the nested file and try to go up 1 parent, I go up 2 parents.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://zettel.developing-today.com/Pages/file/index/index/index/example
  2. Click on direct parent 'index'
  3. You will land in parent of parent 'test'

Expected behavior
It's kind of silly to make such a folder structure, but I would expect either it would work or the documentation would say "Don't do that."

Additional context
I am in a fork where I've made minor changes I think are unrelated to this issue.

Calling this out just in case I'm wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions