Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quartz folder navigation bug #1767

Open
Hammie217 opened this issue Feb 12, 2025 · 3 comments
Open

Quartz folder navigation bug #1767

Hammie217 opened this issue Feb 12, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Hammie217
Copy link

Describe the bug
I am hosting a quartz site at hammie217.github.io/Quartz/ and when navigating using the List page layout the first navigation works aka https://hammie217.github.io/Quartz/Folder1/ but when navigating to a second level folder or page it links to https://hammie217.github.io/Folder1/Folder2/ dropping the /Quartz/ leading to a 404.

When directly linking to https://hammie217.github.io/Quartz/Folder1/Folder2/ this seems to work fine but again a second navigation from here fails in the same way.

This occurs in both the breadcrumbs and list view links.

To Reproduce
Steps to reproduce the behavior:

  1. Host a Quartz site in a non-root location (web.site.com/Quartz)
  2. Navigate twice successively in the list view page
  3. Get a 404

Expected behavior
I would expect links to work no matter how many successive navigations.

Screenshots and Source
From list view:
Image
First navigation works:

Image Second navigation drops /Quartz/ and leads to 404: Image

You can help speed up fixing the problem by either

Feel free to see it in action at https://hammie217.github.io/Quartz/Notes/

Desktop (please complete the following information):

Quartz Version: v4.4.0
node Version: v20.14.0
npm version: v10.7.0
OS: MacOS
Browser: All

@Hammie217 Hammie217 added the bug Something isn't working label Feb 12, 2025
@MihailKovachev
Copy link

MihailKovachev commented Feb 12, 2025

I have been seeing this with my project as well but until now was unable to pinpoint when it happens, so thank you. The problem seems to be that the link should be blahblah.github.io/ProjectName/actualPath but Quartz drops ProjectName for some reason.

@MihailKovachev
Copy link

MihailKovachev commented Feb 12, 2025

Moreover, if you do steps 1-3 in order to reproduce the bug, then navigate back by clicking the back button in the browser, all links will return 404.

@MihailKovachev
Copy link

Oh, this appears to be a duplicate of #1760 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants