fix(router): support redirects to named outlets

Closes #12740, #9921
This commit is contained in:
vsavkin
2016-11-16 17:43:04 -08:00
committed by Chuck Jazdzewski
parent 4e047302f2
commit 602522beb2
3 changed files with 198 additions and 103 deletions

View File

@ -650,7 +650,7 @@ export class Router {
let urlAndSnapshot$: Observable<{appliedUrl: UrlTree, snapshot: RouterStateSnapshot}>;
if (!precreatedState) {
const redirectsApplied$ =
applyRedirects(this.injector, this.configLoader, url, this.config);
applyRedirects(this.injector, this.configLoader, this.urlSerializer, url, this.config);
urlAndSnapshot$ = mergeMap.call(redirectsApplied$, (appliedUrl: UrlTree) => {
return map.call(