We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05753be commit c28fcc7Copy full SHA for c28fcc7
packages/core/src/router/util.ts
@@ -33,11 +33,12 @@ export function normaliseRoute(url: string): NormalisedRoute {
33
}
34
35
const $url = new URL(url)
36
+ const hash = $url.hash.startsWith('#/') ? $url.hash : ''
37
// make sure we start with a leading slash
- const path = `${withLeadingSlash($url.pathname)}${$url.search}`
38
+ const path = `${withLeadingSlash($url.pathname)}${hash}${$url.search}`
39
40
let normalised: Partial<NormalisedRoute> = {
- id: hashPathName(`${$url.pathname}${$url.search}`),
41
+ id: hashPathName(path),
42
url,
43
$url,
44
path,
0 commit comments