@tanstack/react-router 1.65.0 → 1.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.65.0",
3
+ "version": "1.66.1",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1657,7 +1657,8 @@ export class Router<
1657
1657
  const parsed = parseHref(href, {})
1658
1658
  rest.to = parsed.pathname
1659
1659
  rest.search = this.options.parseSearch(parsed.search)
1660
- rest.hash = parsed.hash
1660
+ // remove the leading `#` from the hash
1661
+ rest.hash = parsed.hash.slice(1)
1661
1662
  }
1662
1663
 
1663
1664
  const location = this.buildLocation({