Fixed not working links from database, introduced in 0.8.10

This commit is contained in:
slawkens
2023-08-07 21:45:56 +02:00
parent a338fd967c
commit 1e874c7027
2 changed files with 23 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ else {
}
// handle ?fbclid=x, etc. (show news page)
if (!$found && count($_GET) > 0 && !isset($_REQUEST['subtopic']) && !isset($_REQUEST['p'])) {
if (!$found && count($_GET) > 0 && !isset($_REQUEST['subtopic']) && !isset($_REQUEST['p']) && !in_array($_SERVER['QUERY_STRING'], getDatabasePages())) {
$_REQUEST['p'] = $_REQUEST['subtopic'] = 'news';
$found = true;
}