fix: strip trailing slash in normalizePath so /policy/ resolves correctly
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 49s
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 49s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ac807c0a4f
commit
91ac702f3c
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ export function hidePreloader() {
|
|||
}
|
||||
|
||||
function normalizePath(path) {
|
||||
const stripped = path.replace(/^\/en(\/|$)/, "$1") || "/";
|
||||
const stripped = path.replace(/^\/en(\/|$)/, "$1").replace(/\/$/, "") || "/";
|
||||
return stripped === "/" ? "/home" : stripped;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue