mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
settings: Allow switching between user and org settings manually.
Since the base hash for org settings and user settings are different (organization and settings), the hashchange module gets confused that we are going from one overlay to other. A reproducer for this flow is to visit the organization "Bots" page, click on your own profile as the owner of a bot, and then click "Edit profile" from there. So, we fix this by making an exception for this particular case in the module. Fixes part of #18011.
This commit is contained in:
@@ -114,7 +114,9 @@ export class SettingsPanelMenu {
|
||||
this.curr_li.addClass("active");
|
||||
|
||||
const settings_section_hash = "#" + this.hash_prefix + section;
|
||||
browser_history.update(settings_section_hash);
|
||||
|
||||
// It could be that the hash has already been set.
|
||||
browser_history.update_hash_internally_if_required(settings_section_hash);
|
||||
|
||||
$(".settings-section").removeClass("show");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user