Browse Source

MC support for queryline params

Vijayakrishnan 4 years ago
parent
commit
e91d9701dd
2 changed files with 2 additions and 2 deletions
  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
     // 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) {
     if (target.indexOf('/mc') === 0) {
         target = target.split('/mc')[1];
         target = target.split('/mc')[1];
     }
     }

+ 1 - 1
public/js/yemi.js

@@ -195,7 +195,7 @@ var pageReload = function () {
 };
 };
 
 
 var fastReload = 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) {
     if(targetLocation.indexOf('/mc') === 0) {
         targetLocation = targetLocation.substr(3);
         targetLocation = targetLocation.substr(3);
     }
     }