Repository navigation
fix(@angular/ssr): preserve trailing slashes in query and fragment of redirect URLs - #34512
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the joinUrlParts utility function to correctly preserve trailing slashes within query parameters and URL fragments, ensuring they are not inadvertently stripped during URL normalization. The changes include logic to identify and isolate query and hash segments before processing the path, along with comprehensive test cases in url_spec.ts, app_spec.ts, and ng-routes_spec.ts to verify the fix. I have provided a suggestion to simplify the logic used to identify the suffix index for better readability.
… redirect URLs In redirect URLs, trailing slashes in query parameters or hash fragments should be preserved, while the path portion before the query or fragment continues to be normalized. Fixes angular#34511
096750d to
a77eadd
Compare
…ment of redirect URLs
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In redirect URLs, trailing slashes in query parameters or hash fragments should be preserved, while the path portion before the query or fragment continues to be normalized.
Fixes #34511