Feature or bug: /doc/ckout/ cannot resolve top-level index.md
(1) By Stephan Beal (stephan) on 2022-04-12 08:11:06 [link] [source]
@Richard,
In one tree i've created an index.md in the top level of the project. Visiting /doc/ckout/ does not resolve that file like it does in various subdirs of the project. Instead it says "Document not found." That feels like a corner-case bug, but want to confirm it as such before attempting to patch it.
:-?
(2) By Stephan Beal (stephan) on 2022-04-14 05:56:09 in reply to 1 [source]
Visiting /doc/ckout/ does not resolve that file like it does in various subdirs...
It turns out this is a more general problem - it's unable to resolve to a top-of-repo index.*
regardless of the branch if the request path ends with /
. If it doesn't end with /
then it is resolved. That's the opposite of how non-top-level dirs resolve an index:
- /doc/ckout ==> resolves
- /doc/ckout/ ==> does not
- /doc/branch/subdir/ ==> resolves
- /doc/branch/subdir ==> does not
My initial attempt at fixing this "works" but introduces the inconsistency that both forms resolve, which is not the intent. Still working on consolidating those.