summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index eedb9ab7b..dbdc1ce69 100644
--- a/functions.php
+++ b/functions.php
@@ -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 {