Skip to content

Commit

Permalink
fix: respect query strings
Browse files Browse the repository at this point in the history
Fixes #207
  • Loading branch information
harlan-zw committed Oct 16, 2024
1 parent bc1ccfa commit e708ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/router/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<NormalisedRoute> = {
id: hashPathName(path),
id: hashPathName(`${$url.pathname}${$url.search}`),
url,
$url,
path,
Expand Down

0 comments on commit e708ebe

Please sign in to comment.