Prevent the generation of faulty location hashes
authorAlexander Ebert <ebert@woltlab.com>
Fri, 29 Dec 2017 12:00:21 +0000 (13:00 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 29 Dec 2017 12:00:21 +0000 (13:00 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js

index 8a9fd3291145fe3d140e2721fed603d745d54ee5..f8fb1c2418841747eae332d8fd453f29ce2407b5 100644 (file)
@@ -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
                                );
                        }