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.

groups_settings: Fix browser back button for groups overlay.

Sahil Batraa87de19aa75d
diff --git a/web/src/hashchange.js b/web/src/hashchange.js
index 791a3e640ed..ed22d2906be 100644
--- a/web/src/hashchange.js
+++ b/web/src/hashchange.js
@@ -241,6 +241,10 @@ function do_hashchange_overlay(old_hash) {
history.replaceState(null, "", browser_history.get_full_url("streams/subscribed"));
}
+ if (base === "groups" && !section) {
+ history.replaceState(null, "", browser_history.get_full_url("groups/your"));
+ }
+
// Start by handling the specific case of going
// from something like streams/all to streams_subscribed.
//