Skip to content

fix: incorrect node label when page with percent-encoded URL - #5

Open
enihsyou wants to merge 1 commit into
quartz-community:mainfrom
enihsyou:main
Open

fix: incorrect node label when page with percent-encoded URL#5
enihsyou wants to merge 1 commit into
quartz-community:mainfrom
enihsyou:main

Conversation

@enihsyou

@enihsyou enihsyou commented Jun 4, 2026

Copy link
Copy Markdown

When the page URL includes percent-encoded characters, the central Graph node's label is rendered as the raw encoded string rather than the decoded text. Furthermore, the corresponding page relationships fail to load/display.

This patch adopts the code from v4:
https://github.com/jackyzha0/quartz/blob/d25a6eabf96751ffca56f8a8139272def7a65041/quartz/components/scripts/graph.inline.ts#L600

fix #2

@wenaught

wenaught commented Jul 9, 2026

Copy link
Copy Markdown

Works as expected with encoded cyrillic URLs. Thanks!

@erikbjoern

Copy link
Copy Markdown

Works as expected with Scandinavian letters too! :)

@c55Math4833

Copy link
Copy Markdown

Can confirm this fixes the issue for Traditional Chinese characters as well. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local graph fails on pages with encoded characters in the URL

4 participants