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 ae863d4 commit 098dccbCopy full SHA for 098dccb
.changeset/rich-wasps-cry.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solidjs/router": patch
3
4
+
5
+fix #474 improper search parameter resolution while routing
src/routing.ts
@@ -417,7 +417,7 @@ export function createRouterContext(
417
let s: string;
418
const resolvedTo = resolve
419
? route.resolvePath(to)
420
- : resolvePath((queryOnly && (s = source().value) && s.split("?")[0]) || "", to);
+ : resolvePath((queryOnly && location.pathname) || "", to);
421
422
if (resolvedTo === undefined) {
423
throw new Error(`Path '${to}' is not a routable path`);
0 commit comments