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.

settings: Correctly handle redirecting '#settings/your-bots'.

Sahil Batraddc6f54979df
diff --git a/web/src/hashchange.ts b/web/src/hashchange.ts
index 4691094eac2..2ef07b96e09 100644
--- a/web/src/hashchange.ts
+++ b/web/src/hashchange.ts
@@ -319,10 +319,9 @@ function do_hashchange_overlay(old_hash: string | undefined): void {
);
}
if (base === "settings" && section === "your-bots") {
- // #settings/your-bots is being redirected to #organization/bots/your-bots.
+ // #settings/your-bots is being redirected to #settings/bots/your-bots.
section = "bots";
- base = "organization";
- window.history.replaceState(null, "", "#organization/bots/your-bots");
+ window.history.replaceState(null, "", "#settings/bots/your-bots");
}
if ((base === "settings" || base === "organization") && !section) {
let settings_panel_object = settings_panel_menu.normal_settings;