Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

hashchange: Update spectator hash when hash changed internally.

Aman Agrawal1e5866b785af
diff --git a/static/js/hashchange.js b/static/js/hashchange.js
index b051285edfc..67dc74e7c0c 100644
--- a/static/js/hashchange.js
+++ b/static/js/hashchange.js
@@ -54,6 +54,7 @@ function set_hash(hash) {
if (history.pushState) {
const url = get_full_url(hash);
history.pushState(null, null, url);
+ browser_history.update_web_public_hash(hash);
} else {
blueslip.warn("browser does not support pushState");
window.location.hash = hash;