diff --git a/lib/services/hash.service.ts b/lib/services/hash.service.ts index 82d1ed61ba..fda833e79a 100644 --- a/lib/services/hash.service.ts +++ b/lib/services/hash.service.ts @@ -30,7 +30,7 @@ export class Hash { update(hash: string|null, rewriteHistory:boolean = false) { if (hash == undefined) return; if (rewriteHistory) { - window.history.replaceState(null, '', '#' + hash); + window.history.replaceState(null, '', window.location.href.split("#")[0] + '#' + hash); return; } this.noEmit = true;