-
Notifications
You must be signed in to change notification settings - Fork 95
Navigation links break for files containing : #345
Copy link
Copy link
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
I'm investigating to see if Zensical can be used as a drop-in replacement for the niri docs. As we also build docs to be displayed on GitHub wiki, we use the relatively often used method of naming files Section:-Blah.md so that they show up as "Section: Blah" on there.
Bug description
Specifying a filename containing a colon (:) in the nav section, such as
nav = [
{ "Get started" = "index.md" },
{ "Markdown in 5min" = "Info:-markdown.md" },
]leads to navigation URLs like info:-markdown.md.
Trying to specify the colon as : or : does not help, and leads to the same type of bare URL.
The pages get built as expected, so it is possible to navigate to /Info:-markdown manually.
It is also possible to get around this by specifying the nav entry using an URL encoded colon, and omitting the file type, lol.
nav = [
{ "Get started" = "index.md" },
{ "Markdown in 5min" = "Info%3A-markdown" },
]Related links
Reproduction
Steps to reproduce
From scratch:
zensical new- Rename
markdown.mdtoInfo:-markdown.md zensical serve- Navigate to http://localhost:8000
- Observe that the href to "Markdown in 5min" in the navigation is a bare
info:-markdown.md
Using repro.zip I guess
unzip repro.zip && cd colonoscopyuv run zensical serve- Navigate to http://localhost:8000
- Observe that the href to "Markdown in 5min" in the navigation is a bare
info:-markdown.md
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open