From: Alexander Ebert Date: Fri, 29 Dec 2017 12:00:21 +0000 (+0100) Subject: Prevent the generation of faulty location hashes X-Git-Tag: 3.1.0_RC_1~25^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85fca9aa8f09396fecee65652c234c27920be076;p=GitHub%2FWoltLab%2FWCF.git Prevent the generation of faulty location hashes --- 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 ); }