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.

stream-settings: Fix browser back button behavior for stream settings overlay.

Sahil Batra7a2bbc54a8b4
diff --git a/static/js/hashchange.js b/static/js/hashchange.js
index 9f1898e35c9..6d59d68822d 100644
--- a/static/js/hashchange.js
+++ b/static/js/hashchange.js
@@ -213,6 +213,10 @@ function do_hashchange_overlay(old_hash) {
);
}
+ if (base === "streams" && !section) {
+ history.replaceState(null, "", get_full_url("streams/subscribed"));
+ }
+
// Start by handling the specific case of going
// from something like streams/all to streams_subscribed.
//