From 18f3f048d46e7a2cd8cf5da834f385824114363d Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Wed, 22 May 2019 21:13:25 -0700 Subject: [PATCH] Try fixing infinite redirect bug Sets segmentCount = 0 in 404.html --- public/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/404.html b/public/404.html index e4efe5afa7..ec7947dd79 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/?p=/one/two&q=a=b~and~c=d#qwe // Otherwise, leave segmentCount as 0. - var segmentCount = 1 + var segmentCount = 0 var l = window.location l.replace( l.protocol +