You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In my phone, I didn't have the navbar, so I switched to a page by search and tried navigating via the breadcrumbs. The first two clicks worked right, but the third click (reason explained below) took me to a broken link.
Basically the link strips the subdirectory path. That is, if the website is hosted at example.com/subdirectory (the content being at example.com/subdirectory/path1/path2/...), the URL changes into example.com/path1/path2/path3.
This doesn't happen in desktop mode view.
Also, this only happens every third click when navigating subfolders.
That is, I go to any page, then I use breadcrumbs to switch to a folder, then I switch to a subfolder, and then switch to any note or subfolder, I'll see that the links are broken.
To Reproduce
Steps to reproduce the behavior:
Go to a quartz website with at least three levels of nesting. That is, Folder 1> Folder 2 > File X / Folder 3
Go to a file under Folder 1 by search (e.g. Folder 1/Folder 2/File Y)
Switch to Folder 1 via breadcrumbs
Switch another folder, Folder 2 via breadcrumbs or contents list
Switch to any other file or folder
See that the link breaks
Expected behavior
Link doesn't break
Screenshots and Source
Me at a random page
I switched to 🔮 World Building folder
I switched to the Science and Engineering subfolder (notice that it's okay, and I have the domain subfolder path (/notes/) in the URL
I switched to the Science Resources subfolder and it breaks (notice that I don't have the domain subfolder path in the URL)
All breadcrumbs from folderpage seem to exhibit described behavior, even on desktop. Refreshing the page fixes the issue. I suspect a problem determining the root path.
Can you check if this issue gets worse if you are several folders deep? I want to know if deeper levels cut of more of the link.
I can move back to any number of folders via the breadcrumbs. But if I click a link from the subfolder list, it loads fine, but all the links in the new page, including breadcrumbs lose the /notes path and breaks. so this is not about page depth, just the routing.
Aha, turns out this isn't just for mobile, I just happened to notice this because I only navigated through the subfolder list in the contents section when I was using the phone. This is a problem in that area.
blacklightpy
changed the title
[Mobile] When navigating through mobile view, links truncate subdirectory paths
[Page] When navigating through subfolder lists in the page contents section, links truncate subdirectory paths
Nov 6, 2024
Describe the bug
In my phone, I didn't have the navbar, so I switched to a page by search and tried navigating via the breadcrumbs. The first two clicks worked right, but the third click (reason explained below) took me to a broken link.
Basically the link strips the subdirectory path. That is, if the website is hosted at example.com/subdirectory (the content being at example.com/subdirectory/path1/path2/...), the URL changes into example.com/path1/path2/path3.
This doesn't happen in desktop mode view.
Also, this only happens every third click when navigating subfolders.
That is, I go to any page, then I use breadcrumbs to switch to a folder, then I switch to a subfolder, and then switch to any note or subfolder, I'll see that the links are broken.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Link doesn't break
Screenshots and Source
Me at a random page
I switched to 🔮 World Building folder
I switched to the Science and Engineering subfolder (notice that it's okay, and I have the domain subfolder path (/notes/) in the URL
I switched to the Science Resources subfolder and it breaks (notice that I don't have the domain subfolder path in the URL)
My website: https://blacklightpy.github.io/notes
Desktop (please complete the following information):
node
Version: 22 (GitHub CI job copied from docs)npm
version: "The text was updated successfully, but these errors were encountered: