embed: update embed deeplink to use replaceState instead of hash assign
This commit is contained in:
+3
-1
@@ -54,7 +54,9 @@ class EmbedRWP extends LitElement
|
||||
url: event.data.url,
|
||||
ts: event.data.ts,
|
||||
});
|
||||
window.location.hash = "#" + currHash.toString();
|
||||
const url = new URL(window.location.href);
|
||||
url.hash = "#" + currHash.toString();
|
||||
window.history.replaceState({}, "", url);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user