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 2d138b9 commit 94a7e25Copy full SHA for 94a7e25
packages/router/src/experimental/router.ts
@@ -536,10 +536,10 @@ export function experimental_createRouter(
536
537
if (
538
typeof rawLocation === 'object' &&
539
- rawLocation.hash?.startsWith('#')
+ !rawLocation.hash?.startsWith('#')
540
) {
541
warn(
542
- `A \`hash\` should always start with the character "#". Replace "${hash}" with "#${hash}".`
+ `A \`hash\` should always start with the character "#". Replace "${rawLocation.hash}" with "#${rawLocation.hash}".`
543
)
544
}
545
0 commit comments