fix(router): preserve fragment on initial load

This commit is contained in:
vsavkin
2016-06-25 11:51:15 -07:00
parent a620f95891
commit 90295e3252
6 changed files with 15 additions and 8 deletions

View File

@ -32,7 +32,7 @@ export class MockLocationStrategy extends LocationStrategy {
ObservableWrapper.callEmit(this._subject, new _MockPopStateEvent(this.path()));
}
path(): string { return this.internalPath; }
path(includeHash: boolean = false): string { return this.internalPath; }
prepareExternalUrl(internal: string): string {
if (internal.startsWith('/') && this.internalBaseHref.endsWith('/')) {