浏览代码

fixed logout url

Piotr Labudda 8 年之前
父节点
当前提交
802e611dae
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      SE/se-lib/Route/Users.php

+ 5 - 0
SE/se-lib/Route/Users.php

@@ -977,6 +977,11 @@ class Route_Users extends RouteBase {
 				if (global.p5UI__MenuStore) global.p5UI__MenuStore.clearCache()
 			})(window)
 		");
+		echo UI::h('script', [], "
+			(function (global) {
+				if (global.history && global.history.pushState) history.replaceState({}, global.document.title, 'index.php');
+			})(window)
+		");
 		UI::dol();
 	}
 	public function passeditView($data = []) {