Skip to content

Commit f720f3c

Browse files
test redirectPage in 404.html
Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>
1 parent 2778c21 commit f720f3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

404.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
const path = window.location.pathname.replace(`/${repoName}`, "").replace(/^\/+/, "").replace(/\/$/, "");
1212
const redirectPage = pages.includes(path);
1313
if (redirectPage) {
14+
console.log(redirectPage, "redirectPage")
1415
var newUrl = `/${repoName ? repoName + "/" : ""}?page=${encodeURIComponent(path)}`;
1516
window.location.replace(newUrl);
1617
}

0 commit comments

Comments
 (0)