-
Notifications
You must be signed in to change notification settings - Fork 27.1k
UrlTree created by Router.createUrlTree might incorrectly have fragment === undefined #34197
Copy link
Copy link
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: routerfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix
Milestone
Description
🐞 bug report
Affected Package
The issue is caused by package @angular/router, particularly by the method Router.createUrlTree.
Is this a regression?
To my knowledge, no.
Description
When creating a UrlTree using Router.createUrlTree without passing any fragments, the resulting UrlTree contains a fragment === undefined. This does not conform to its type signature.
🔬 Minimal Reproduction
🌍 Your Environment
Angular Version: 8.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: routerfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix