kopia lustrzana https://github.com/bugout-dev/moonstream
try 2
rodzic
503d5aab05
commit
dd0ea5bd41
|
@ -117,10 +117,12 @@ const Homepage = () => {
|
||||||
router.nextRouter.asPath.slice(0, 2) !== "/#" &&
|
router.nextRouter.asPath.slice(0, 2) !== "/#" &&
|
||||||
router.nextRouter.asPath.slice(0, 11) !== "/index.html"
|
router.nextRouter.asPath.slice(0, 11) !== "/index.html"
|
||||||
) {
|
) {
|
||||||
console.log("redirect attempt..");
|
console.warn("redirect attempt..");
|
||||||
router.replace(router.nextRouter.asPath, router.nextRouter.asPath, {
|
if (typeof window !== "undefined") {
|
||||||
shallow: false,
|
router.replace(router.nextRouter.asPath, router.nextRouter.asPath, {
|
||||||
});
|
shallow: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, [isInit, router]);
|
}, [isInit, router]);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue