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] the algorithm of redirects middleware has been fixed #SXA-7405 #1876

Merged
merged 7 commits into from
Aug 13, 2024

Conversation

sc-ruslanmatkovskyi
Copy link
Collaborator

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

Description / Motivation

When a user clicks on a link generated by the Link component from next/link, Next.js adds special parameters in the route called path. This is why the redirects middleware doesn't work correctly when the user clicks on the link. In this PR, a special method is added to remove this parameter from Next.js

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] the algorithm of redirects middleware has been… [sitecore-jss-nextjs] the algorithm of redirects middleware has been fixed #SXA-7405 Aug 7, 2024
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-7405-redirects branch from bc0e1a4 to ca412ed Compare August 7, 2024 16:32
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-7405-redirects branch from c5b6e16 to 2209439 Compare August 12, 2024 14:28
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-7405-redirects branch from 2209439 to 004a09d Compare August 12, 2024 14:32
CHANGELOG.md Outdated Show resolved Hide resolved
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-7405-redirects branch 2 times, most recently from 4688289 to 7fddcde Compare August 13, 2024 09:15
@sc-ruslanmatkovskyi sc-ruslanmatkovskyi force-pushed the bugfix/SXA-7405-redirects branch from 7fddcde to a1de7b2 Compare August 13, 2024 09:16
@illiakovalenko illiakovalenko merged commit 727314b into dev Aug 13, 2024
1 check passed
@illiakovalenko illiakovalenko deleted the bugfix/SXA-7405-redirects branch August 13, 2024 09:50
illiakovalenko pushed a commit that referenced this pull request Aug 13, 2024
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