Skip to content

fix(i18n): middleware should consider trailing slash when redirecting#9085

Merged
ematipico merged 1 commit intomainfrom
fix/correct-redirect-home
Nov 13, 2023
Merged

fix(i18n): middleware should consider trailing slash when redirecting#9085
ematipico merged 1 commit intomainfrom
fix/correct-redirect-home

Conversation

@ematipico
Copy link
Copy Markdown
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

@changeset-bot
Copy link
Copy Markdown

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
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