Skip to content

Conversation

@yavorsk
Copy link
Contributor

@yavorsk yavorsk commented Jan 20, 2026

Description / Motivation

When basePath is configured in NextJs config make sure that it is preserved when doing redirects in redirects-middleware.
Example:

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate) - all redirects with configured NextJs basePath should work properly; test with both client side and server side navigation

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)

@yavorsk yavorsk changed the title [nextjs] Preserve basePath when doing redirects in redirects-middleware [sitecore-jss-nextjs] Preserve basePath when doing redirects in redirects-middleware Jan 20, 2026
@illiakovalenko illiakovalenko merged commit 61befa4 into dev Jan 20, 2026
5 checks passed
@illiakovalenko illiakovalenko deleted the bugfix/JSS-8706 branch January 20, 2026 12:44
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