From b7f2a2b3f39dbc49b72491ed3ed7adf0b6d2b71e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Feb 2019 15:15:41 +0100 Subject: [PATCH] Fix search alias page if page not found --- htdocs/website/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 1433ae5324c..2f81d361637 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -116,6 +116,10 @@ if ($pageid < 0) $pageid = 0; if (($pageid > 0 || $pageref) && $action != 'addcontainer') { $res = $objectpage->fetch($pageid, ($object->id > 0 ? $object->id : null), $pageref); + if ($res == 0) + { + $res = $objectpage->fetch($pageid, ($object->id > 0 ? $object->id : null), null, $pageref); + } // Check if pageid is inside the new website, if not we reset param pageid if ($res >= 0 && $object->id > 0)