v5: permalink does not provide a path-independent page URL as documented
v5: permalink does not provide a path-independent page URL as documented
Describe the bug
In Quartz v5, the permalink frontmatter property does not appear to provide a path-independent page URL as described in the documentation.
The documentation says that a permalink can be used to create a custom URL that remains constant even if the file path changes.
However, in my testing, permalink creates an alias redirect page. The actual content page still uses the slug derived from the source file path.
For example:
---
title: Test Article
permalink: 2024040414012730
---with a source file such as:
content/日本語フォルダ/日本語記事.mdallows access to:
/2024040414012730but this URL serves a redirect page and immediately redirects to the path-derived page URL.
If the source file is moved or renamed, the redirect target changes as well.
The path-derived slug is also used by the sitemap, RSS, search/content-index, and Open Graph/Twitter metadata.
This means that permalink remains a stable redirect entry point, but it does not become the stable URL of the content page itself.
To Reproduce
- Create a Markdown file at a nested path, for example:
content/日本語フォルダ/日本語記事.md- Add frontmatter:
---
title: Test Article
permalink: 2024040414012730
---Build and serve the site using the standard Quartz v5 configuration with
note-propertiesandalias-redirects.Open:
/2024040414012730Observe that this returns a redirect page and redirects to the path-derived article URL.
Move or rename the source file, for example:
content/別のフォルダ/変更後タイトル.mdwhile keeping the same permalink.
Rebuild the site.
/2024040414012730still exists, but now redirects to the new path-derived URL.The sitemap, RSS, content-index/search data, and OG/Twitter URL also use the path-derived slug rather than the permalink.
Expected behavior
Based on the documentation, I expected:
/2024040414012730to be the stable URL of the content page itself.
Moving or renaming the source Markdown file should not change the public URL of that page.
Ideally, the permalink would also be used consistently for the page URL and URL-based outputs such as the sitemap, RSS, search/content-index, and metadata.
If the current alias/redirect behavior is intentional, the documentation may need clarification because “a custom URL that remains constant even if the file path changes” currently suggests that permalink is the stable page URL rather than a stable redirect alias.
Screenshots and Source
I reproduced this using an isolated fixture rather than my production content.
Observed build output:
- The actual article HTML is generated at the path-derived location.
2024040414012730.htmlis generated separately as a redirect page.- The redirect page points to the path-derived content URL.
- Moving the source file changes the article URL and redirect target.
- The sitemap, RSS, content-index/search, and OG/Twitter metadata continue to use the path-derived slug.
Relevant current implementation:
@quartz-community/note-propertiesaddspermalinkto aliases.@quartz-community/alias-redirectsemits a redirect page for that alias.- The content page's own slug remains path-derived.
Desktop
- Quartz Version: v5.0.0 (
d9d16251c1f48fe01cdeea4843c9962e92586689) nodeVersion: v24.14.1npmVersion: v11.11.0- OS: macOS
- Browser: N/A — reproduced against the local Quartz development server via HTTP; the generated redirect HTML and meta refresh were also inspected directly
Additional context
Before filing this issue, I also checked the current v5 upstream implementation.
The current note-properties implementation still adds permalink as an alias rather than replacing the page slug, and alias-redirects redirects that alias to file.data.slug.
I could not find an existing issue, PR, or commit that changes permalink into the canonical/path-independent content URL.
The current authoring documentation describes permalink as a custom URL that remains constant even if the file path changes, so I am unsure whether this is an implementation bug or a documentation/expectation mismatch.
Source: jackyzha0/quartz