mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
062a696673
The existing implementation of `PlatformLocation` uses a custom URL parsing mechanism that can be brittle and doesn't properly update the `href` property. This change refactors the URL parsing to use the native `URL` constructor, providing more robust and accurate parsing of URLs, which also correctly updates the `href` property. The tests for `PlatformLocation` have also been moved to a dedicated file to improve organization and clarity. PR Close #64494