diff --git a/frontend/static/js/components/ReplyContainer.vue b/frontend/static/js/components/ReplyContainer.vue index 7d511b7b7..3a5b7465f 100644 --- a/frontend/static/js/components/ReplyContainer.vue +++ b/frontend/static/js/components/ReplyContainer.vue @@ -70,6 +70,15 @@ export default { } } }, + mounted: function() { + if (window.location.hash) { + const anchorEl = document.getElementById(window.location.hash.substring(1)) + if (anchorEl) { + window.location = window.location + anchorEl.scrollIntoView() + } + } + }, updated: function() { if (this.replyTo !== null && this.getEditor()) { // move the reply form under the comment