Skip to content

Commit 18f5ba3

Browse files
committed
Fixed fix...
1 parent bde251b commit 18f5ba3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

client/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<html lang="en">
33

44
<head>
5+
<script>
6+
(() => {
7+
const { pathname, search, hash } = window.location;
8+
if (pathname !== "/" && !pathname.endsWith("/")) {
9+
const normalized = `${pathname}/`;
10+
window.history.replaceState(null, "", `${normalized}${search}${hash}`);
11+
}
12+
})();
13+
</script>
514
<meta charset="UTF-8" />
615
<link rel="icon" type="image/icon" href="./scouterna.ico" />
716
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

0 commit comments

Comments
 (0)