Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): manual routing with rewrite #12718

Merged
merged 1 commit into from
Dec 11, 2024
Merged

fix(i18n): manual routing with rewrite #12718

merged 1 commit into from
Dec 11, 2024

Conversation

ematipico
Copy link
Member

Changes

Closes #12431

The fallback object was always undefined. Not sure how overlooked that!

Testing

Added a new test

Docs

N/A

Copy link

changeset-bot bot commented Dec 11, 2024

🦋 Changeset detected

Latest commit: 13e31b7

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 11, 2024
@ematipico ematipico force-pushed the fix/i18n-middleware branch 2 times, most recently from 00100f2 to fc669f3 Compare December 11, 2024 14:00
Comment on lines +304 to +305
response?.headers.get(REROUTE_DIRECTIVE_HEADER) === 'no' &&
typeof fallback === 'undefined'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though we're about to render the internal 404 or 500, we still want to handle the fallback

Copy link

codspeed-hq bot commented Dec 11, 2024

CodSpeed Performance Report

Merging #12718 will not alter performance

Comparing fix/i18n-middleware (13e31b7) with main (b3dfd9b)

Summary

✅ 4 untouched benchmarks

@ematipico ematipico merged commit ccc5ad1 into main Dec 11, 2024
16 checks passed
@ematipico ematipico deleted the fix/i18n-middleware branch December 11, 2024 15:23
@astrobot-houston astrobot-houston mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

i18n fallback does not work with manual routing
2 participants