diff --git a/public/404.html b/public/404.html
index 47c4a1d..54666da 100644
--- a/public/404.html
+++ b/public/404.html
@@ -22,7 +22,7 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
- var pathSegmentsToKeep = 1;
+ var pathSegmentsToKeep = 0;
var l = window.location;
l.replace(