fix(router): router link should navigate to non-base Url.
While still displaying full base + custom part of url in the href.
This commit is contained in:
3
modules/angular2/src/mock/location_mock.js
vendored
3
modules/angular2/src/mock/location_mock.js
vendored
@ -45,7 +45,8 @@ export class SpyLocation extends SpyObject {
|
||||
}
|
||||
|
||||
go(url:string) {
|
||||
if (this._path === url) {
|
||||
url = this.normalizeAbsolutely(url);
|
||||
if (this._path == url) {
|
||||
return;
|
||||
}
|
||||
this._path = url;
|
||||
|
Reference in New Issue
Block a user