add console log

pull/64/head
Tim Pechersky 2021-08-05 17:49:18 +08:00
rodzic 711a6b4560
commit 503d5aab05
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

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