SIGN IN SIGN UP

fix(@angular/ssr): use router to normalize URLs for comparison

Updates `constructDecodedUrl` in the SSR engine to use the Angular `Router` for parsing and serializing URLs instead of manual string manipulation and decoding.

This ensures that the URL comparison used to determine if a redirect is necessary is consistent with how the router interprets and serializes the URL. This prevents issues where differences in encoding or edge cases (like duplicate query parameters or empty values) could lead to incorrect comparison results and unexpected redirects.

Also updates tests to include edge cases for query parameters and paths to verify this behavior.

Fixes #33053
A
Alan Agius committed
c34c569b076c8b9d82bf18a094a29cb68fd8a63d
Parent: 7b5a86c
Committed by Alan Agius <alan.agius4@gmail.com> on 4/28/2026, 7:00:14 AM