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] fix for Redirects related to x-middleware-next Header #SXA-6564 #1899

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

sc-ruslanmatkovskyi
Copy link
Collaborator

@sc-ruslanmatkovskyi sc-ruslanmatkovskyi commented Aug 21, 2024

Description / Motivation

The issue was caused by the x-middleware-next header in Next.js, which prevented the flow from being interrupted properly.
As a result, redirects did not function correctly in certain cases.
This fix ensures that the flow is correctly interrupted, allowing redirects to work as expected.

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 force-pushed the bugfix/SXA-6564-netlify-redirects branch from 8b4508e to 80f98a3 Compare August 28, 2024 21:53
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-6564-netlify-redirects branch from 80f98a3 to e2e8332 Compare August 29, 2024 08:01
CHANGELOG.md Outdated Show resolved Hide resolved
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi changed the title [sitecore-jss-nextjs] The redirects has been fixed for Netlify service #SXA-6564 [sitecore-jss-nextjs] fix for Redirects related to x-middleware-next Header #SXA-6564 Aug 29, 2024
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-6564-netlify-redirects branch from 762cc66 to 9622d4b Compare August 29, 2024 08:22
@illiakovalenko illiakovalenko merged commit ca06445 into dev Aug 29, 2024
1 check passed
@illiakovalenko illiakovalenko deleted the bugfix/SXA-6564-netlify-redirects branch August 29, 2024 09:05
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.

3 participants