mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
parent
388b3d48d5
commit
c77e1a28f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user