-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Folder and home links not working on defaultListPageLayout when using folderClickBehavior "link" on Github Pages. #1013
Comments
Hey @thelulzy It appears that the problem you are encountering is related to your configuration. The Inside baseUrl: "thelulzy.github.io", To: baseUrl: "thelulzy.github.io/TF-EE-quartz-obsidian-vault", Please let me know if this resolves your issue or if you require further assistance. |
I am having a similar issue. The baseUrl is set correctly to include the repository, but clicking the home page 404s for the same reason listed above. Also using Github Pages. |
As far as I can tell this did not fix the issue. I've attempted to implement the proported fix in a different repo: |
Well yeah, if you host it on https://thelulzy.github.io/Pax-Dei-Notes/ you should use that as Can you try the following? baseUrl: "thelulzy.github.io/Pax-Dei-Notes", |
I suppose I should've been more clear. That is how I configured the new repo: |
I'm a little confused. I have clicked around on links on your site. All the links on https://thelulzy.github.io/TF-EE-quartz-obsidian-vault/ seem to be working on my end. Could you clarify what the current issue is you're facing? |
That's because I'm not using My new repo however is a work in progress, so I decided to try your fix. |
What browser are you using? Can you clear your cache and try again? |
Gladly. I just tried using Edge for the first time and it happens there as well. I have also tried it after clearing my cache. |
Screen_Recording_20240617_015111_Chrome.mp4 |
I just noticed that this behavior only occurs from https://thelulzy.github.io/Pax-Dei-Notes/Guides and not https://thelulzy.github.io/Pax-Dei-Notes/Guides/ (Note the difference in trailing |
Recording.2024-06-16.170306.mp4@saberzero1 |
@saberzero1 Sorry for the confusion! |
Your explorer was not visible on my screen. It seems to be hidden on screens less than 1950px wide. FullHD is 1920px. You might want to check your scaling. As for the link: A folder link is actually a link to an The folder link is computed here: Which resolves to Which resolves to Also notice the difference of the link on <a href="../Guides" data-for="Guides" class="folder-title" previewlistener="true">Guides</a> and <a href="/Guides" data-for="Guides" class="folder-title" previewlistener="true">Guides</a> Notice the difference of I assume the problem arise either in the Can you check if the value for Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), If both settings are the same (in Quartz and Obsidian), then it is probably a bug. As for a (temporary) workaround: you can place an EDIT: the ---
title: "Guides"
--- (Change I'll look more into it tomorrow. |
This is indeed how markdownLinkResolution is configured in my quartz.config.ts Is this the Obsidian setting you are referring to? |
Alright. Thanks for checking. I'll continue tomorrow. |
all folders should be linked to with a trailing slash, github pages just doesn't enforce the redirect so its weird |
I suppose we could add an explicit check that adds a trailing slash before computing the folder links, if they are not present yet. Although I'm not sure if that would break anything. I'll look into it. quartz/quartz/components/ExplorerNode.tsx Lines 206 to 219 in 42640bc
|
👋 Hi, just chiming in with what I think is a similar issue with link computation. This is for page links though, not folders.
[1] I've fixed it on my live site by setting |
Describe the bug
When using
folderClickBehavior: "link"
as shown below, folder and home links exclude the base level subdirectory.Links which should be
https://thelulzy.github.io/TF-EE-quartz-obsidian-vault/*
are insteadhttps://thelulzy.github.io/*
and thus 404.This issue does not seem to occur when building/serving with
npx quartz build --serve
To Reproduce
Steps to reproduce the behavior:
{folderClickBehavior: "link"}
toComponent.Explorer
s in quarts.layout.tsExpected behavior
Base level subdir is included in links from defaultListPageLayout pages
Desktop (please complete the following information):
node
Version: 18.17.1npm
version: 10.4.0The text was updated successfully, but these errors were encountered: