Skip to content

Commit e6569a8

Browse files
committed
Fix 404 wrong redirect
1 parent 948e0c1 commit e6569a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
.querySelector('#meta-location')
1414
.setAttribute(
1515
'content',
16-
`0;${document.URL.substr(document.URL.indexOf('/'))}`
16+
`0;${window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/'))}`
1717
);
1818
</script>
1919
</head>

0 commit comments

Comments
 (0)