|
|
@@ -305,11 +305,13 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
|
|
|
router.push(path);
|
|
|
}
|
|
|
else {
|
|
|
- reload();
|
|
|
+ // Do not use "router.push(currentPathname)" to avoid `Error: Invariant: attempted to hard navigate to the same URL`
|
|
|
+ // See: https://github.com/weseek/growi/pull/7061
|
|
|
+ router.reload();
|
|
|
}
|
|
|
};
|
|
|
openDeleteModal([pageWithMeta], { onDeleted: deletedHandler });
|
|
|
- }, [openDeleteModal, reload, router]);
|
|
|
+ }, [openDeleteModal, router]);
|
|
|
|
|
|
const switchContentWidthHandler = useCallback(async(pageId: string, value: boolean) => {
|
|
|
await updateContentWidth(pageId, value);
|