Skip to content

Commit a3ec3ad

Browse files
authored
fix(router): correct navigation with search parameters and hash (#493)
1 parent 9e79b42 commit a3ec3ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const useRouter = () => {
5858
const searchString = untrack(() =>
5959
_mergeSearchString(location.search, params),
6060
)
61-
navigate(joinBase(pathname() + searchString), {
61+
navigate(location.pathname + searchString + location.hash, {
6262
scroll: false,
6363
...options,
6464
resolve: true,

0 commit comments

Comments
 (0)