Skip to content

Commit

Permalink
Maybe fix appUrlOpen
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jun 10, 2024
1 parent 4cab32d commit 2e21cc9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);

Expand Down

0 comments on commit 2e21cc9

Please sign in to comment.