The behavior in Angular 18 SSR: If you go to / you're redirected to /some which redirects to /some/thing.
The behavior in Angular 19 SSR: If you go to / you get stuck in a redirect loop which tries to redirect to /thing. So, it looks like the nested redirect is not adding the parent route but tries redirect to a root route.
The same routing works in Angular 19 without SSR.
Please see the linked example and read the README there for setting up the example.
Please provide a link to a minimal reproduction of the bug
Which @angular/* package(s) are the source of the bug?
router
Is this a regression?
Yes
Description
Using the following routes in Angular 19 with SSR enables leads to an
ERR_TOO_MANY_REDIRECTS
error:The behavior in Angular 18 SSR: If you go to
/
you're redirected to/some
which redirects to/some/thing
. The behavior in Angular 19 SSR: If you go to/
you get stuck in a redirect loop which tries to redirect to/thing
. So, it looks like the nested redirect is not adding the parent route but tries redirect to a root route.The same routing works in Angular 19 without SSR.
Please see the linked example and read the README there for setting up the example.
Please provide a link to a minimal reproduction of the bug
https://github.com/ManuelRauber/angular-19-ssr-redirect-issue
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response