diff --git a/src/router.tsx b/src/router.tsx index 0ad459fc..d3b1cb8e 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -120,10 +120,15 @@ export function Router() { const path = url.pathname; const urlParams = new URLSearchParams(url.search); - console.log( - `Navigating to ${path}?${urlParams.toString()}` - ); - navigate(`${path}?${urlParams.toString()}`); + if (urlParams.size) { + console.log( + `Navigating to ${path}?${urlParams.toString()}` + ); + navigate(`${path}?${urlParams.toString()}`); + } else { + console.log(`Navigating to ${path}`); + navigate(path); + } } );