From dad78bfca5dad2ddbaaeda8f932833c589013f1b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 22 Jul 2016 00:34:11 +0200 Subject: [PATCH] Use history.replaceState() to avoid browser scrolling --- wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/Reply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/Reply.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/Reply.js index 2ad6fe0715..84934df5cf 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/Reply.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/Reply.js @@ -238,7 +238,7 @@ define(['Ajax', 'Core', 'EventHandler', 'Language', 'Dom/ChangeListener', 'Dom/U //noinspection JSUnresolvedVariable elData(this._container, 'last-post-time', data.returnValues.lastPostTime); - window.location.hash = elementId; + window.history.replaceState(undefined, '', '#' + elementId); UiScroll.element(elById(elementId)); } -- 2.20.1