[BUGFIX] Shortcut to first sub-page with move placeholder does not work
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageRepository.php
index 7483787..462ec0c 100644 (file)
@@ -624,6 +624,11 @@ class PageRepository
 
             // Versioning Preview Overlay
             $this->versionOL('pages', $page, true);
+            // Skip if page got disabled due to version overlay
+            // (might be delete or move placeholder)
+            if (empty($page)) {
+                continue;
+            }
 
             // Add a mount point parameter if needed
             $page = $this->addMountPointParameterToPage((array)$page);