diff --git a/src/utils/router.js b/src/utils/router.js index a1a0fa0..64e103d 100644 --- a/src/utils/router.js +++ b/src/utils/router.js @@ -13,7 +13,10 @@ function handleRouting() { export function goToPage(path) { window.history.pushState({}, '', path); - handleRouting(); + + if (window.location.pathname !== path.split('?')[0]) { + handleRouting(); + } } // Обработка изменения URL