Skip to content

Commit

Permalink
remove short hash from url
Browse files Browse the repository at this point in the history
  • Loading branch information
genthegreat committed Feb 25, 2025
1 parent 9e48872 commit 7c68f6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/get-canonical-page-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export function getCanonicalPageId(
})

// Optionally append a short hash to ensure uniqueness
if (canonicalId) {
const shortHash = pageId.slice(0, 4)
return `${canonicalId}-${shortHash}`
}
// if (canonicalId) {
// const shortHash = pageId.slice(0, 4)
// return `${canonicalId}-${shortHash}`
// }

return canonicalId
}
Expand Down

0 comments on commit 7c68f6f

Please sign in to comment.