@@ -303,9 +303,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
router.push(path);
}
else if (currentPathname != null) {
- // 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();
router.push(currentPathname);
};
@@ -54,9 +54,6 @@ export const TrashPageAlert = (): JSX.Element => {
try {
unlink(currentPagePath);
- // Do not use "router.push(`/${pageId}`)" to avoid `Error: Invariant: attempted to hard navigate to the same URL`
- // See: https://github.com/weseek/growi/pull/7054
router.push(`/${pageId}`);
catch (err) {