-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
area: routerhelp wantedAn 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).
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
router
Description
NavigationBehaviorOptions had browserUrl added here in #53318 which is a useful feature for controlling the URL experience a user has. It would be nice if this same option was forwarded to the RouterLink directive which already supports a subset of the NavigationBehaviorOptions.
Proposed solution
Provide a new input for browserUrl that is provided to the extras used when calling router.navigateByUrl via the RouterLink directive.
Alternatives considered
- A custom
(click)handler callingrouter.navigateByUrl- This negates the utility provided by the
RouterLinkin the first place.
- This negates the utility provided by the
- Duplicate routes matching the desired browser URLs and use
skipLocationChangeorreplaceUrl- Duplicating route definitions feels like a hack rather than a solution to this problem.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: routerhelp wantedAn 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).