Browse Source

https/http redirect fix

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
5f67505cc1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      public/js/mc.js

+ 2 - 0
public/js/mc.js

@@ -229,6 +229,8 @@ function fastLoad(_href, _history = true, _useCache = true, _replaceState = fals
     showMask();
 
     if (_href === '') _href = '/';
+    if(_href.length > 1 && _href[_href.length - 1] === '/') _href = _href.substr(0, _href.length - 1);
+    _href = _href.replace('/?', '?');
 
     // push state
     if (_history) {