[BUGFIX] Do not mark "current" links as broken
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Html / RteHtmlParser.php
index 21c44f3..03e97ce 100644 (file)
@@ -1273,7 +1273,7 @@ class RteHtmlParser extends HtmlParser implements LoggerAwareInterface
                 continue;
             }
             $hrefInformation = $linkService->resolve($attributes['href']);
-            if ($hrefInformation['type'] === LinkService::TYPE_PAGE) {
+            if ($hrefInformation['type'] === LinkService::TYPE_PAGE && $hrefInformation['pageuid'] !== 'current') {
                 $pageRecord = BackendUtility::getRecord('pages', $hrefInformation['pageuid']);
                 if (!is_array($pageRecord)) {
                     // Page does not exist