diff --git a/src/main/webapp/WEB-INF/jsp/head.jsp b/src/main/webapp/WEB-INF/jsp/head.jsp index aa95fd3db3..cfcf9f6ce7 100644 --- a/src/main/webapp/WEB-INF/jsp/head.jsp +++ b/src/main/webapp/WEB-INF/jsp/head.jsp @@ -25,6 +25,7 @@ + diff --git a/src/main/webapp/js/lor.js b/src/main/webapp/js/lor.js index 4d15673f50..719359421f 100644 --- a/src/main/webapp/js/lor.js +++ b/src/main/webapp/js/lor.js @@ -302,8 +302,8 @@ function replace_state() { // Yes, we are viewing a comment // exit if no such target - if (document.querySelector('article.msg:target') === null) return; - + if (document.getElementById(document.location.hash.substring(1)) === null) return; + var hash = document.location.hash.split('-'); if (parseInt(hash[1]) > 0) { // OK, comment ID is valid