diff --git a/packages/core/src/router/util.ts b/packages/core/src/router/util.ts index 7b267d30..3690013d 100644 --- a/packages/core/src/router/util.ts +++ b/packages/core/src/router/util.ts @@ -34,10 +34,10 @@ export function normaliseRoute(url: string): NormalisedRoute { const $url = new URL(url) // make sure we start with a leading slash - const path = withLeadingSlash($url.pathname) + const path = `${withLeadingSlash($url.pathname)}${$url.search}` let normalised: Partial = { - id: hashPathName(path), + id: hashPathName(`${$url.pathname}${$url.search}`), url, $url, path,