Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

Cherry-pick #31904
Closes #31902

… redirects

This commit ensures that redirects correctly account for the X-Forwarded-Prefix header and APP_BASE_HREF, preventing incorrect redirect loops or invalid URLs when running behind a proxy or with a base href.

Closes angular#31902

(cherry picked from commit 4dac5f2)
@alan-agius4 alan-agius4 linked an issue Nov 24, 2025 that may be closed by this pull request
1 task
@alan-agius4 alan-agius4 requested a review from dgp1130 November 24, 2025 11:59
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: lts This PR is targeting a version currently in long-term support and removed area: @angular/ssr labels Nov 24, 2025
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 24, 2025
@alan-agius4 alan-agius4 merged commit cceb862 into angular:20.3.x Nov 24, 2025
34 of 35 checks passed
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the cherr-pick-ssr branch November 24, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker target: lts This PR is targeting a version currently in long-term support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSR redirect loop with custom base href (>=20.3.7)

2 participants