autofworward after login
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s

This commit is contained in:
2023-10-26 22:04:05 +02:00
parent 5dda6b958d
commit 339321a322
4 changed files with 20 additions and 3 deletions

View File

@ -78,7 +78,10 @@ class Login extends Page {
else
{
$u->login();
$this->redirect('/');
if($_SERVER['HTTP_HX_CURRENT_URL'] && !endsWith($_SERVER['HTTP_HX_CURRENT_URL'],'/login'))
$this->redirect($_SERVER['HTTP_HX_CURRENT_URL']);
else
$this->redirect('/');
}
}