mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 00:25:56 +00:00
fix login redirect to calling page
This commit is contained in:
@@ -760,7 +760,8 @@
|
||||
if (!USE_HTTP_AUTH) {
|
||||
if (!$_SESSION["uid"]) {
|
||||
$redirect_uri = get_login_redirect();
|
||||
header("Location: $redirect_uri?rt=tt-rss.php");
|
||||
$return_to = preg_replace('/.*?\//', '', $_SERVER["REQUEST_URI"]);
|
||||
header("Location: $redirect_uri?rt=$return_to");
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user