pull/65/head
Tim Pechersky 2021-08-05 18:03:42 +08:00
rodzic 503d5aab05
commit dd0ea5bd41
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -117,10 +117,12 @@ const Homepage = () => {
router.nextRouter.asPath.slice(0, 2) !== "/#" &&
router.nextRouter.asPath.slice(0, 11) !== "/index.html"
) {
console.log("redirect attempt..");
router.replace(router.nextRouter.asPath, router.nextRouter.asPath, {
shallow: false,
});
console.warn("redirect attempt..");
if (typeof window !== "undefined") {
router.replace(router.nextRouter.asPath, router.nextRouter.asPath, {
shallow: false,
});
}
}
}, [isInit, router]);