소스 검색

MC > do not autoscroll to top if only query-line params are different

Vijayakrishnan 4 년 전
부모
커밋
009290f908
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/js/mc.js

+ 1 - 1
public/js/mc.js

@@ -165,7 +165,7 @@ function onFastLoaded(_data, _href, _history) {
                 initPrimaryForm();
                 initPatientPresenceIndicator();
                 runMCInitializers();
-                if (window.top.currentMcUrl !== window.top.location.href) {
+                if (window.top.currentMcUrl.split('?')[0] !== window.top.location.href.split('?')[0]) {
                     $(window).scrollTop(0);
                 }
                 window.top.currentMcUrl = window.top.location.href;