fix: strip trailing slash in normalizePath so /policy/ resolves correctly
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:
isUnknown 2026-06-01 09:22:17 +02:00
parent ac807c0a4f
commit 91ac702f3c

View file

@ -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;
}