By stefano rigazio on Monday, 17 March 2014
Posted in General Issues
Replies 9
Likes 0
Views 599
Votes 0
I created the menu of the home to view the articles in EasyBlog only two apgina that if I go in the url I get is this:
mysite.com/?start=4
and then if I want to return to page 1 I get this url:
mysite.com/?limitstart=0 instead of mysite.com
in this way I have a problem of duplication of the content of the homepage.
Even if I look at the html code I have also this url:
<link href="http://www.mysite.com/latest.html" rel="canonical" />
So I have three url for the same page
How do I resolve?
thanks a lot

stefano
It's a secret. Just kidding I have added the codes in /components/com_easyblog/views/categories/view.html.php at line 256 I have added the codes below:



// Set the meta description for the category
$canonicalUrl = EasyBlogRouter::getRoutedURL( 'index.php?option=com_easyblog&view=categories&layout=listings&id=' . $category->id , false , true, true );
$doc->addCustomTag( '<link rel="canonical" href="' . $canonicalUrl . '"/>' );



This will be added in the next release of EasyBlog too.
·
Wednesday, 19 March 2014 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stefano,

Hm, regardless of the URL structure, there's actually a canonical tag in the header of your page as you can see here,


<link href="http://www.seojoomla.it/latest.html" rel="canonical" />


Search engines would be able to understand this Read more about canonical tags here, https://support.google.com/webmasters/answer/139394?hl=en
·
Monday, 17 March 2014 23:16
·
0 Likes
·
0 Votes
·
0 Comments
·
ok however I ahome this page is http://www.seojoomla.it/
how do I change the canonical?
But it is a bug or because it gives me that url?
thanks a lot

stefano
·
Monday, 17 March 2014 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Monday, 17 March 2014 23:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, thanks
·
Monday, 17 March 2014 23:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stefano,

Hm, it looks like there's 2 canonical tags on the head of your page. The other one seems to be generated by Joomla. The one generated by EasyBlog is correct as it does not have the latest.html but the other one seems to be generated from /plugins/system/sef/sef.php . I have commented out the codes at line 51,


if ($uri !== $link)
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
·
Tuesday, 18 March 2014 01:27
·
0 Likes
·
0 Votes
·
0 Comments
·
and how can I fix this category?

here there is no canonical

thanks a lot

stefano
·
Tuesday, 18 March 2014 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you give this a try again now?
·
Tuesday, 18 March 2014 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
You are a genius, you tell me how you did it?
·
Wednesday, 19 March 2014 00:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post