Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

During prerendering, if a route returns a redirect, a static HTML page with a meta refresh tag is generated to redirect the user to the specified URL. This now includes support for redirects returned from route guards.

Closes #31618

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Oct 28, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/build labels Oct 28, 2025
@alan-agius4 alan-agius4 requested a review from clydin October 28, 2025 13:21
@alan-agius4 alan-agius4 marked this pull request as ready for review October 28, 2025 13:22
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 28, 2025
@alan-agius4 alan-agius4 changed the title feat(@angular/build): handle redirects from guards during prerendering fix(@angular/build): handle redirects from guards during prerendering Oct 28, 2025
During prerendering, if a route returns a redirect, a static HTML page with a meta refresh tag is generated to redirect the user to the specified URL. This now includes support for redirects returned from route guards.

Closes angular#31618
@alan-agius4 alan-agius4 removed the detected: feature PR contains a feature commit label Oct 28, 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 Oct 28, 2025
@alan-agius4 alan-agius4 merged commit cc16b10 into angular:main Oct 28, 2025
32 checks passed
@alan-agius4 alan-agius4 deleted the redirect branch October 28, 2025 19:48
@alan-agius4
Copy link
Collaborator Author

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

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 area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSG generates empty index.html if navigation in guard

2 participants