fix(router): location changes and redirects break the back button (#10742)

This commit is contained in:
Victor Savkin
2016-08-12 14:30:51 -07:00
committed by vikerman
parent 203b2ba637
commit 04c6b2fe85
4 changed files with 50 additions and 6 deletions

View File

@ -77,6 +77,7 @@ export class SpyLocation implements Location {
var url = path + (query.length > 0 ? ('?' + query) : '');
this.urlChanges.push(url);
this._subject.emit({'url': url, 'pop': false});
}
replaceState(path: string, query: string = '') {