kopia lustrzana https://github.com/bugout-dev/moonstream
add console log
rodzic
711a6b4560
commit
503d5aab05
|
@ -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]);
|
||||
|
|
Ładowanie…
Reference in New Issue