Commit 3766847a authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Fix issue with non existend page id

parent 9c60241e
......@@ -117,7 +117,13 @@ class RoutingService {
);
if ($function === '') {
// empty function means redirect to parent page
$pageId = $request->getAttribute('routing')->getPageId();
$routing = $request->getAttribute('routing');
if (method_exists($routing, 'getPageId')) {
$pageId = $request->getAttribute('routing')->getPageId();
} else {
$pageId = $rootUid;
}
$pageQueryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(
'pages'
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment