From 85fca9aa8f09396fecee65652c234c27920be076 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 29 Dec 2017 13:00:21 +0100 Subject: [PATCH] Prevent the generation of faulty location hashes --- .../install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js index 8a9fd32911..f8fb1c2418 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js @@ -276,7 +276,7 @@ define(['Dictionary', 'EventHandler', 'Dom/Traverse', 'Dom/Util'], function(Dict window.history.replaceState( undefined, undefined, - window.location.href.replace(/#[^#]+$/, '') + '#' + name + window.location.href.replace(/#+[^#]+$/, '') + '#' + name ); } -- 2.20.1