Index: lams_central/web/includes/javascript/rating.js =================================================================== diff -u -r644c6b2a9215db03d10f2dbd43e5e363a52c405e -r94e96499672682a3f2abcde0f4127648a71e1c2c --- lams_central/web/includes/javascript/rating.js (.../rating.js) (revision 644c6b2a9215db03d10f2dbd43e5e363a52c405e) +++ lams_central/web/includes/javascript/rating.js (.../rating.js) (revision 94e96499672682a3f2abcde0f4127648a71e1c2c) @@ -140,17 +140,10 @@ if (refreshOnSubmit) { // LDEV-5052 Refresh page and scroll to the given ID on comment submit - var url = location.href, - anchorIndex = url.lastIndexOf('#'); - if (anchorIndex > 0) { - url = url.substring(0, anchorIndex); - } - url += '#' + refreshOnSubmit; - if (url == location.href) { - location.reload(true); - return false; - } - location.href = url; + + // setting href does not navigate if url contains #, we still need a reload + location.hash = '#' + refreshOnSubmit; + location.reload(); return false; }