From 2713b7877b2ef95e2ad20a1a2611cf9ec73b2593 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Sun, 3 May 2015 20:22:41 -0700 Subject: [PATCH] fix(router): navigate on popstate event --- modules/angular2/src/router/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/router/router.js b/modules/angular2/src/router/router.js index 8983b4df51..ebfcd9f5c4 100644 --- a/modules/angular2/src/router/router.js +++ b/modules/angular2/src/router/router.js @@ -196,7 +196,7 @@ export class Router { export class RootRouter extends Router { constructor(registry:RouteRegistry, pipeline:Pipeline, location:Location, hostComponent:Type) { super(registry, pipeline, location, null, hostComponent); - this._location.subscribe((url) => this.navigate(url)); + this._location.subscribe((change) => this.navigate(change['url'])); this._registry.configFromComponent(hostComponent); this.navigate(location.path()); }