We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e79b42 commit a3ec3adCopy full SHA for a3ec3ad
1 file changed
src/hooks/useRouter.ts
@@ -58,7 +58,7 @@ const useRouter = () => {
58
const searchString = untrack(() =>
59
_mergeSearchString(location.search, params),
60
)
61
- navigate(joinBase(pathname() + searchString), {
+ navigate(location.pathname + searchString + location.hash, {
62
scroll: false,
63
...options,
64
resolve: true,
0 commit comments