From 9019c6f937f26fa7db1ca8c7b3a2946985a67375 Mon Sep 17 00:00:00 2001 From: William Welling Date: Thu, 24 Mar 2016 10:29:49 -0500 Subject: [PATCH] Condition using component as well. Closes #7755 --- modules/@angular/router-deprecated/src/instruction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/router-deprecated/src/instruction.ts b/modules/@angular/router-deprecated/src/instruction.ts index 0927be263d..5194c26966 100644 --- a/modules/@angular/router-deprecated/src/instruction.ts +++ b/modules/@angular/router-deprecated/src/instruction.ts @@ -189,7 +189,7 @@ export abstract class Instruction { /** @internal */ _stringifyPathMatrixAux(): string { - if (isBlank(this.urlPath)) { + if (isBlank(this.component) && isBlank(this.urlPath)) { return ''; } return this.urlPath + this._stringifyMatrixParams() + this._stringifyAux();