quartz icon indicating copy to clipboard operation
quartz copied to clipboard

Linking from a folder Index page to another folder index page leads to a 404

Open kayg04 opened this issue 9 months ago • 2 comments

Describe the bug

This is my folder structure on Obsidian:

CleanShot 2024-04-25 at 13 55 13@2x

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:

  1. Link a folder index file to another folder's index file
  2. 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)

kayg04 avatar Apr 25 '24 08:04 kayg04

Could you link the repo and page in question

sidney-eliot avatar Apr 25 '24 09:04 sidney-eliot

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.

kayg04 avatar Apr 25 '24 09:04 kayg04