mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
hashchange: Fix update_browser_history() call for settings.
Even prior to my recent change in settings_panel_menu.js, we were assigning window.location.hash a value that doesn't have a '#' prefix. This probably doesn't matter too much for the browser, but it does confuse our own checks about whether we're redundantly updating browser history. Now we prefix the settings hash with '#' and we encorce this convention with a blueslip error.
This commit is contained in:
@@ -69,7 +69,7 @@ exports.make_menu = function (opts) {
|
||||
curr_li.addClass("active");
|
||||
curr_li.prev().addClass("no-border");
|
||||
|
||||
var settings_section_hash = hash_prefix + section;
|
||||
var settings_section_hash = '#' + hash_prefix + section;
|
||||
hashchange.update_browser_history(settings_section_hash);
|
||||
|
||||
$(".settings-section, .settings-wrapper").removeClass("show");
|
||||
|
||||
Reference in New Issue
Block a user