@tanstack/react-router 1.166.6 → 1.166.8

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.
@@ -1655,7 +1655,7 @@ const router = createRouter({
1655
1655
  input: ({ url }) => {
1656
1656
  // Strip locale prefix: /en/about → /about
1657
1657
  if (url.pathname.startsWith('/en')) {
1658
- url.pathname = url.pathname.replace(/^\/en/, '') || '/'
1658
+ url.pathname = url.pathname.replace(/^\\/en/, '') || '/'
1659
1659
  }
1660
1660
  return url
1661
1661
  },