Re-add custom page_view event
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Misode
2025-01-04 20:42:04 +01:00
parent e52e6a791c
commit a97c21d9de
4 changed files with 19 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ export function hashString(s: string) {
}
export function cleanUrl(url: string) {
return `/${url}/`.replaceAll('//', '/')
return `/${url}/`.replaceAll(/\/\/+/g, '/')
}
export function getPath(url: string) {