diff --git a/customize.dist/pages/faq.js b/customize.dist/pages/faq.js index 10feca433..400724b41 100644 --- a/customize.dist/pages/faq.js +++ b/customize.dist/pages/faq.js @@ -22,6 +22,9 @@ define([ } $(question).toggleClass('cp-active-faq'); $(answer).slideDown(); + var t = $(window).scrollTop(); + window.location.hash = hash; + $(window).scrollTop(t); }); questions.push(h('div.cp-faq-questions-items', [ Pages.setHTML(question, item.q), diff --git a/customize.dist/template.js b/customize.dist/template.js index e34aa7440..b7bb57513 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -54,7 +54,9 @@ $(function () { } else if (/invite/.test(pathname)) { require([ '/invite/main.js'], function () {}); } else if (/faq/.test(pathname)) { - window.location.hash = window.location.hash; + var hash = window.location.hash; + window.location.hash = ''; + window.location.hash = hash; } else { require([ '/customize/main.js', ], function () {}); }