Skip to content

[Angular] SXA Redirects support (redux) - #570

Merged
art-alexeyenko merged 8 commits into
devfrom
feature/jss-9257-angular-redirect-ex
Jul 30, 2026
Merged

[Angular] SXA Redirects support (redux)#570
art-alexeyenko merged 8 commits into
devfrom
feature/jss-9257-angular-redirect-ex

Conversation

@art-alexeyenko

Copy link
Copy Markdown
Collaborator

Description / Motivation

Add SXA Redirects support for Angular through Redirects middleware

  • locale-aware (using locale prefix or default language)
  • reuses common redirect logic
  • applies redirects on server or client navigation
    • caveat: 301/302 redirects result in the same behavior on browser nav due to Angular redirect API used

Side note: this PR also includes a chore to fix analytics logic imports leaking into non-analytics places, causing unit test issues in CI.

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)

(cherry picked from commit b9350d5)
@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5b9e78e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@sitecore-content-sdk/angular Minor
create-content-sdk-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

📦 Package Size and Test Coverage Report

Package Base Size PR Size Δ Change Base Coverage PR Coverage Δ Change
analytics-core 67.34 KB 67.34 KB ✅ 0.00 KB 97.40% 97.40% 0.00%
angular 322.51 KB 337.93 KB 🔺 +15.42 KB 93.95% 93.85% -0.10%
cli 61.06 KB 61.06 KB ✅ 0.00 KB 71.36% 71.36% 0.00%
content 481.96 KB 481.96 KB ✅ 0.00 KB 92.86% 92.86% 0.00%
core 121.93 KB 121.93 KB ✅ 0.00 KB 91.09% 91.09% 0.00%
create-content-sdk-app 524.56 KB 525.19 KB 🔺 +0.63 KB 96.47% 96.47% 0.00%
events 72.27 KB 72.27 KB ✅ 0.00 KB 97.97% 97.97% 0.00%
nextjs 543.01 KB 543.01 KB ✅ 0.00 KB 91.47% 91.47% 0.00%
personalize 64.01 KB 64.01 KB ✅ 0.00 KB 99.74% 99.74% 0.00%
react 235.00 KB 235.00 KB ✅ 0.00 KB 93.89% 93.89% 0.00%
search 8.25 KB 8.25 KB ✅ 0.00 KB 98.72% 98.72% 0.00%
Total 🔺 +16.05 KB

…ature/jss-9257-angular-redirect-ex

# Conflicts:
#	packages/angular/src/server/middleware/index.ts
#	packages/create-content-sdk-app/src/templates/angular/src/server.ts
Comment thread packages/create-content-sdk-app/src/templates/angular/src/server.ts
Comment thread packages/angular/src/config/http-types.ts

@MenKNas MenKNas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking nice and smooth! Thank you!

@art-alexeyenko
art-alexeyenko merged commit 07c6169 into dev Jul 30, 2026
5 checks passed
@art-alexeyenko
art-alexeyenko deleted the feature/jss-9257-angular-redirect-ex branch July 30, 2026 12:14
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