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): middleware should consider trailing slash when redirecting #9085

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

ematipico
Copy link
Member

Changes

This PR fixes a bug where when trailingSlash is always, the middleware should take that into consideration and redirect to the correct URL.

To do so, I had to add trailingSlash to the manifest. This is a piece of information that so far was saved inside routeData._meta, although this is now required to have inside the SSR manifest, at the top level.

Testing

I created new test cases, for each pipeline

Docs

N/A

Copy link

changeset-bot bot commented Nov 13, 2023

🦋 Changeset detected

Latest commit: aba6476

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 Nov 13, 2023
@ematipico ematipico force-pushed the fix/correct-redirect-home branch from 71f7247 to e394a31 Compare November 13, 2023 15:46
@ematipico ematipico force-pushed the fix/correct-redirect-home branch from e394a31 to aba6476 Compare November 13, 2023 15:50
@github-actions github-actions bot added the pr: docs A PR that includes documentation for review label Nov 13, 2023
@ematipico ematipico merged commit fc66ecf into main Nov 13, 2023
13 checks passed
@ematipico ematipico deleted the fix/correct-redirect-home branch November 13, 2023 19:12
@astrobot-houston astrobot-houston mentioned this pull request Nov 13, 2023
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) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants