From 5940cdf5f5ebc65bc181ea63979442eeb4858320 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 22 Sep 2021 16:40:17 +0200 Subject: [PATCH] login: preview target metadata of linked index pages --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index cfe0027..a3905d3 100644 --- a/login/index.php +++ b/login/index.php @@ -44,7 +44,7 @@ if (!$User or !$User->login) { http_response_code(403); } $target = ltrim($_REQUEST['goto'], '/'); - $target = new ArchiveArticle("$target.html"); + $target = new ArchiveArticle(file_exists($target) ? "$target/index.html" : "$target.html"); $target->index; # run forbidden handler to determine metadata if ($target->title) { -- 2.30.0