-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Is your feature request related to a problem? Please describe.
I use page hrefs in dynamic <meta>
tags, for example in og:url
. It'd be great if VitePress provided a way to reliably reference the page's pathname, to ensure that that part of the dynamic meta content is correct.
Describe the solution you'd like
Export this function:
vitepress/src/shared/shared.ts
Line 65 in 452d6c7
function normalize(path: string): string { |
Describe alternatives you've considered
Currently, I copy normalize
, HASH_OR_QUERY_RE
, and INDEX_OR_EXT_RE
from src/shared/shared.ts
to my VitePress config. That's brittle and inelegant.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels