瀏覽代碼

MC support for queryline params

Vijayakrishnan 4 年之前
父節點
當前提交
e91d9701dd
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      public/js/mc.js
  2. 1 1
      public/js/yemi.js

+ 1 - 1
public/js/mc.js

@@ -52,7 +52,7 @@ $(document).ready(function () {
     // }
 
     // populate history on fresh load
-    var target = window.top.location.pathname;
+    var target = window.top.location.pathname + window.top.location.search;
     if (target.indexOf('/mc') === 0) {
         target = target.split('/mc')[1];
     }

+ 1 - 1
public/js/yemi.js

@@ -195,7 +195,7 @@ var pageReload = function () {
 };
 
 var fastReload = function() {
-    var targetLocation = window.top.location.pathname;
+    var targetLocation = window.top.location.pathname + window.top.location.search;
     if(targetLocation.indexOf('/mc') === 0) {
         targetLocation = targetLocation.substr(3);
     }