forked from Adleraci/adlerka.top
Fix logout redirect
This commit is contained in:
parent
dc6b1589d3
commit
ee20b77602
@ -213,7 +213,7 @@ function logout() {
|
|||||||
|
|
||||||
doAction('/account', data, "Logout Successful!", "Logout failed.").then(() => {
|
doAction('/account', data, "Logout Successful!", "Logout failed.").then(() => {
|
||||||
refreshNavbar();
|
refreshNavbar();
|
||||||
navigateTo("", localStorage.getItem("defaultPage"));
|
navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage"));
|
||||||
umami.track("logout");
|
umami.track("logout");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -141,6 +141,7 @@ function getPage($site_name_in = null, $page_name_in = null): string
|
|||||||
"currentSite" => $site_name,
|
"currentSite" => $site_name,
|
||||||
"currentTitle" => $page_title,
|
"currentTitle" => $page_title,
|
||||||
"defaultPage" => $routerConfig["default_page"],
|
"defaultPage" => $routerConfig["default_page"],
|
||||||
|
"defaultSite" => $routerConfig["default_site"],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$navigation = generateNavigation();
|
$navigation = generateNavigation();
|
||||||
|
Loading…
Reference in New Issue
Block a user