| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…outes over catch-alls Routes using a `[lng]` locale param were reported as the 404 catch-all. Two causes: `hasOptionalPrefix` only matched `locale`, `lang` and `language`, so `[lng]` never got the unprefixed-default-locale retry. Route specificity summed per-segment scores, letting a short catch-all beat a longer but strictly narrower route. Compare segment by segment instead. This also affected prefixed locales, not just unprefixed ones. Add `routeManifestInjection.localeParamNames` to override the built-in list. It replaces rather than extends the defaults so apps with a non-i18n `[lang]` param can opt out. Fixes #23488 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
bugbot run |
Sorry, something went wrong.
size-limit report 📦⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.
|
Sorry, something went wrong.
The length tiebreaker preferred the longer route whenever the shared segments tied, so '/fr' matched '/:lng/:notFound*' via the optional-prefix retry instead of '/:lng'. Compare one segment past the shorter route instead, ranking the end of a route between a dynamic segment and a catch-all: continuing into a static or dynamic segment narrows a route, continuing into a catch-all widens it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
bugbot run |
Sorry, something went wrong.
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ddbdd91. Configure here.
Sorry, something went wrong.
…outes over catch-alls (#23520) `[lng]` locale routes were reported as the 404 catch-all. Two causes: - `hasOptionalPrefix` only matched `locale`/`lang`/`language`, so `[lng]` never got the unprefixed-default-locale retry. - Route specificity summed per-segment scores, letting a short catch-all (`/:lng/:notFound*`) beat a longer but strictly narrower route (`/:lng/guides/:category/:rest*`). It is now compared segment by segment. This one also affected prefixed locales, which the issue assumed were working. Also adds `routeManifestInjection.localeParamNames` to override the built-in list, as raised in #17927. It replaces rather than extends the defaults so an app with a genuine non-i18n `[lang]` param can opt out. Fixes #23488 --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
[lng] locale routes were reported as the 404 catch-all. Two causes:
Also adds routeManifestInjection.localeParamNames to override the built-in list, as raised in #17927. It replaces rather than extends the defaults so an app with a genuine non-i18n [lang] param can opt out.
Fixes #23488