Skip to content

Commit

Permalink
[sitecore-jss-nextjs]: Redirects for Netlify has been fixed (except …
Browse files Browse the repository at this point in the history
…of multilanguage) #SXA-6564 (#1919)
  • Loading branch information
sc-ruslanmatkovskyi authored Sep 5, 2024
1 parent a9a5d86 commit 804428d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Our versioning strategy is as follows:
### 🐛 Bug Fixes

* `[sitecore-jss-nextjs]` Addressed an issue where the x-middleware-rewrite header caused redirects to fail during execution on Netlify. ([#1915](https://github.com/Sitecore/jss/pull/1915))
* `[sitecore-jss-nextjs]` Fixed incorrect behavior of redirects on Netlify service. This fix does not resolve issues related to multilingual redirects. ([#1919](https://github.com/Sitecore/jss/pull/1919))

## 22.1.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ export class RedirectsMiddleware extends MiddlewareBase {
statusText: string
): NextResponse {
const redirect = NextResponse.redirect(url, {
...(res || {}),
status,
statusText,
headers: res?.headers,
Expand Down

0 comments on commit 804428d

Please sign in to comment.