removing trailing slashes

This commit is contained in:
Miodec 2022-06-27 15:24:09 +02:00
parent 05c03936fe
commit 35e25b5a64

View file

@ -100,6 +100,8 @@ const routes: Route[] = [
];
export function navigate(url = window.location.pathname): void {
url = url.replace(/\/$/, "");
if (url === "") url = "/";
history.pushState(null, "", url);
router();
}