Skip to main content

Native Joomla canonical link injection

More
6 years 5 months ago #318196 by Denitz
Hikiashop uses not 100% logic code to add canonical URLs:
Code:
$doc->addCustomTag( '<link rel="canonical" href="'.$canonicalUrl.'" />' );

The correct way is to use the addHeadLink() method:
Code:
$doc->addHeadLink($canonicalUrl, 'canonical');

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #318201 by nicolas
Hi,

Thank you for your feedback. We'll look at changing this.

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum