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

[sitecore-jss-nextjs]: fixed redirects middleware when pattern use default locale in regexp #1696

Merged
merged 4 commits into from
Dec 15, 2023

Conversation

sc-ruslanmatkovskyi
Copy link
Collaborator

@sc-ruslanmatkovskyi sc-ruslanmatkovskyi commented Dec 15, 2023

Description / Motivation

A loop of error occured when pattern of redirect had default locale.
This fix remove default locale in pattern because req.url hasn't default locale in pathname.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@sc-ruslanmatkovskyi sc-ruslanmatkovskyi changed the title [sitecore-jss-nextjs]: fixed redirects middleware when pattern use default local in regexp [sitecore-jss-nextjs]: fixed redirects middleware when pattern use default locale in regexp Dec 15, 2023
@illiakovalenko illiakovalenko merged commit 2b25de6 into dev Dec 15, 2023
1 check passed
@illiakovalenko illiakovalenko deleted the bugfix/605906-fix-redirects-using-locale-in-url branch December 15, 2023 11:07
art-alexeyenko pushed a commit that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants