nieuws/feed: include domain part in article link
[minimedit.git] / login / index.php
index 86af0744a4587ea1d9aeab162384a34cb5371641..c7d705df7c2c69a337a001383591dc12877df3ab 100644 (file)
@@ -39,12 +39,23 @@ if (empty($User)) {
        ob_clean();
        require_once 'login/form.inc.php';
        $Place['warn'] = $message;
+       $Place['title'] = 'Inloggen';
+       if (isset($_REQUEST['goto'])) {
+               require_once 'nieuws.inc.php';
+               $target = ltrim($_REQUEST['goto'], '/');
+               $target = new ArchiveArticle("$target.html");
+               if ($target->file) {
+                       if ($target->title) {
+                               $Place['title'] .= ' voor ' . $target->title;
+                       }
+               }
+       }
        return TRUE;
 }
 
-if (isset($_GET['goto'])) {
+if (isset($_REQUEST['goto'])) {
        ob_clean();
-       $target = ltrim($_GET['goto'], '/');
+       $target = ltrim($_REQUEST['goto'], '/');
        header("Location: /$target");
        http_response_code(302);
        exit;