Router: use UrlHandlingStrategy from DI

🚀 feature request

Relevant Package

This feature request is for @angular/router

Description

Could you please use UrlHandlingStrategy from DI in Router.
This will allow to prepend language to all routerLink and direct navigate, navigateByUrl calls.
So, all l10n packages will be able to avoid unmet localize pipes

it’s already defined in providers, but directly declared as property in Router:

urlHandlingStrategy: UrlHandlingStrategy = new DefaultUrlHandlingStrategy();

Describe the solution you’d like

Just move UrlHandlingStrategy from here property:

urlHandlingStrategy: UrlHandlingStrategy = new DefaultUrlHandlingStrategy();

to constructor:

Describe alternatives you’ve considered

Have you considered any alternative solutions or workarounds?

1 possible answer(s) on “Router: use UrlHandlingStrategy from DI