Project

General

Profile

Bug #100933

Updated by Sybille Peters over 1 year ago

This is reported as broken link (assuming CE #999999999 does not exist on page 27): 


 <pre><code class="html"> 
 <p><a href="t3://page?uid=27#999999999">link to another page with missing anchor</a></p> 
 </code></pre> 


 This is not reported as broken link (assuming CE #999999999 does not exist on current page): 

 <pre><code class="html"> 
 <p><a href="t3://page?uid=current#99999999">link to current page with missing anchor</a></p> 
 </code></pre> 



 h2. Versions 

 * main 
 * 11.5 (latest) 

 h2. More context 

 Another issue has been created for the more general problem in the softref parser: #100934 

 This seems to be due to TypolinkTagSoftReferenceParser::parse not considering links with the format t3://page?uid=current#99999999. This function is called in linkvalidator. The parser does not return the t3://page?uid=current links.  

 So it looks like not an error in linkvalidator, but an error in the link parser. 

 code: 

 <pre><code class="php"> 
 } elseif ($linkDetails['type'] === LinkService::TYPE_PAGE && preg_match('/page\?uid=(\d+)#?(\d+)?/', $matches[1], $pageAndAnchorMatches)) { 
 </code></pre> 


 https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/DataHandling/SoftReference/TypolinkSoftReferenceParser.php 

Back