Skip to content

Commit

Permalink
[BUGFIX] Additional fix in parse page links
Browse files Browse the repository at this point in the history
Resolves: #382
  • Loading branch information
sypets committed Oct 29, 2024
1 parent 4895c25 commit 8d6d1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Parser/LinkParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ protected function analyzeLinks(

// Type of referenced record

$referencedRecordType = '';
if (isset($reference['recordRef']) && strpos($reference['recordRef'], 'pages') !== false) {
$currentR = $reference;
// Contains number of the page
Expand All @@ -328,7 +329,6 @@ protected function analyzeLinks(
} elseif (isset($reference['recordRef']) && strpos($reference['recordRef'], 'tt_content') !== false
&& (isset($wasPage) && $wasPage === true)) {
// if type is ce and previous was page, we extend the page link and disregard the content link
//$referencedRecordType = $referencedRecordType . '#c' . $reference['tokenValue'];
$foundLinks[$pageKey]['pageAndAnchor'] .= '#c' . $reference['tokenValue'];
$wasPage = false;
continue;
Expand Down

0 comments on commit 8d6d1fa

Please sign in to comment.