Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(router): Remove malformedUriErrorHandler from
ExtraOptions
(#51745
) The `malformedUriErrorHandler` is used as a recovery mechanism for when the `UrlSerializer` throws an error when parsing a URL string. If custom error handling is desired for this, it should instead be done inside the `UrlSerializer.parse` method itself. There's no reason to have an entire feature option built around what can otherwise just be `try...catch`. BREAKING CHANGE: `malformedUriErrorHandler` is no longer available in the `RouterModule.forRoot` options. URL parsing errors should instead be handled in the `UrlSerializer.parse` method. PR Close #51745
- Loading branch information
1 parent
873e80b
commit 0b3e6a4
Showing
5 changed files
with
3 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters