quartz
quartz copied to clipboard
Linking from a folder Index page to another folder index page leads to a 404
Describe the bug
This is my folder structure on Obsidian:
Recently I made an index file under "Public/Permanent Notes" that linked to "Public/Reference Notes", and vice versa. Each of those links were like so: [[Public/Permanent Notes/index]]
and [[Public/Reference Notes/index]]
. However when I did published it to quartz over at my website, the links generated resulted in a 404 because the links resolved to kayg.org/Public/Reference Notes
and kayg.org/Public/Permanent-Notes
instead of just kayg.org/Permanent-Notes
and kayg.org/Reference-Notes
I worked around the behaviour by using a relative link instead: [[../Reference Notes]]
and [[../Permanent Notes]]
I am on the latest commit of the repo:
$ npx quartz --version
4.2.3
To Reproduce Steps to reproduce the behavior:
- Link a folder index file to another folder's index file
- See incorrect link on quartz website when resolving those links
Expected behavior
Index note links should be correctly resolved like when linking a normal note within a folder to another folder.
Desktop (please complete the following information):
- Quartz Version: 4.2.3
-
node
Version: 21.7.3 -
npm
version: 10.5.0 - OS: MacOS
- Browser: Arc Browser (Version 1.39.1 (49071), Chromium Engine Version 124.0.6367.61)
Could you link the repo and page in question
https://kayg.org/
and
https://github.com/kayg04/kayg.org
btw I've already worked around it but you can build it locally with the latest commit reverted and check it out.