Sfoglia il codice sorgente

MC fix ql param handling in root page

Vijayakrishnan 3 anni fa
parent
commit
23257d9115
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      public/js/mc.js

+ 2 - 0
public/js/mc.js

@@ -267,6 +267,8 @@ function fastLoad(_href, _history = true, _useCache = true, _replaceState = fals
             cleanedHREF = cleanedHREF.replace('/?', '?');
         }
 
+        if(cleanedHREF.length > 0 && cleanedHREF[0] === '?') cleanedHREF = '/' + cleanedHREF;
+
         $.get(cleanedHREF, function (_data) {
             onFastLoaded(_data, _href, _history);
         }).fail(function (_jqXhr) {