Changes new hashing behavior to parse new as /subscribers/new

This commit corrects new as left tab behavior
This commit is contained in:
Francisco Meirelles Fleury 2024-07-03 13:09:13 -03:00
parent 91bd6e2b12
commit 8ef5007379
1 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,10 @@ function do_hashchange_overlay(old_hash) {
if (coming_from_overlay && base === old_base) {
if (base === "channels") {
// e.g. #channels/29/social/subscribers
if (section == "new") {
section = "subscribers";
right_side_tab = "new";
}
const right_side_tab = hash_parser.get_current_nth_hash_section(3);
stream_settings_ui.change_state(section, undefined, right_side_tab);
return;