Skip to content
Snippets Groups Projects
Commit 64256b97 authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[BUGFIX] Fix canonical links and deprecate the MetaTagGenerator fields

parent 8670a150
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,11 @@ class NewsByAuthorController extends AbstractController {
$GLOBALS['TSFE']->page['titlebyextension'] = $author->getName();
$GLOBALS['TSFE']->page['description'] = \strip_tags(\substr($author->getDescription(), 0, 200));
$GLOBALS['TSFE']->page['extensionArgumentsForCanonicalAndHrefLang'] =
'&tx_sgnews_newsbyauthor[authorId]=' . $author->getUid();
if (version_compare(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('sg_seo'),
'5.0.0', '<')) {
$GLOBALS['TSFE']->page['extensionArgumentsForCanonicalAndHrefLang'] =
'&tx_sgnews_newsbyauthor[authorId]=' . $author->getUid();
}
$authors[] = $author;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment