@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.
- package/dist/cjs/Match.cjs +0 -1
- package/dist/cjs/Match.cjs.map +1 -1
- package/dist/esm/Match.js +0 -1
- package/dist/esm/Match.js.map +1 -1
- package/dist/llms/rules/api.d.ts +1 -1
- package/dist/llms/rules/api.js +1 -1
- package/dist/llms/rules/guide.d.ts +1 -1
- package/dist/llms/rules/guide.js +5 -5
- package/dist/llms/rules/installation.d.ts +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/package.json +2 -2
- package/src/Match.tsx +0 -1
package/dist/llms/rules/api.js
CHANGED
|
@@ -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(
|
|
1658
|
+
url.pathname = url.pathname.replace(/^\\/en/, '') || '/'
|
|
1659
1659
|
}
|
|
1660
1660
|
return url
|
|
1661
1661
|
},
|