Use shallow routing for website details.
This commit is contained in:
@@ -17,9 +17,9 @@ export default function MenuLayout({
|
||||
|
||||
function handleSelect(url) {
|
||||
if (replace) {
|
||||
router.replace(url);
|
||||
router.replace(url, undefined, { shallow: true });
|
||||
} else {
|
||||
router.push(url);
|
||||
router.push(url, undefined, { shallow: true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user