Browse Source

fix back button

Nikolay Suslov 4 năm trước cách đây
mục cha
commit
5723e446ad
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      public/core/app.js

+ 2 - 1
public/core/app.js

@@ -1416,7 +1416,8 @@ class App {
        let state = {
          path: ctx.pathname + urlAddon
        }
-       window.history.pushState(state, space, window.location.href + urlAddon);
+
+       window.history.replaceState(state, space, window.location.href + urlAddon);
      }