From: Alexander Ebert Date: Thu, 21 Jul 2016 22:34:11 +0000 (+0200) Subject: Use history.replaceState() to avoid browser scrolling X-Git-Tag: 3.0.0_Beta_1~1005 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dad78bfca5dad2ddbaaeda8f932833c589013f1b;p=GitHub%2FWoltLab%2FWCF.git Use history.replaceState() to avoid browser scrolling --- 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)); }