By stefano rigazio on Thursday, 10 September 2015
Posted in Technical Issues
Replies 3
Likes 0
Views 734
Votes 0
I saw that in the paging there is the problem of the canonical and more if, for example, the page number 1 URL is this:
/e-commerce.html
I then go to page two and then go back and become the url
/e-commerce.html?limitstart=0
and the canonical is wrong, thanks a lot

stefano
Hey stefano,

I've tried to view that page, but it seems like the canonical link didn't show `limitstart` , am i missing something here? Please advise.
·
Thursday, 10 September 2015 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
But you see that there are two canonical? Not okay
·
Thursday, 10 September 2015 23:42
·
0 Likes
·
0 Votes
·
0 Comments
·
The second canonical is rendered by Joomla's SEF plugin and there is no way for us to remove this. The best way for you is to turn off the System - SEF plugin or edit the file /plugins/system/sef/sef.php and locate the codes below,


if ($uri->toString() !== $link)
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}


Replace it with,


if ($uri->toString() !== $link && JRequest::getVar('option') != 'com_easyblog')
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
·
Friday, 11 September 2015 02:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post