By Manish Dhar on Tuesday, 12 August 2014
Posted in General Issues
Replies 23
Likes 0
Views 1K
Votes 0
Hello Manish,

It looks like Joomla's SEF plugin is adding the wrong canonical link. I have added the codes below into the file /plugins/system/sef/sef.php at line 51,


if (JRequest::getVar('option') == 'com_easydiscuss') {
return;
}
·
Wednesday, 13 August 2014 11:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

EasyDiscuss will actually add a canonical tag on the page to ensure that despite having several links that are linking to the same page, the correct one is used. However, I did noticed that there are 2 canonical tags on your site when I view the source of the page. Do you use any 3rd party extension to generate canonical tags?
·
Tuesday, 12 August 2014 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I do see the rel="canonical" but they all have it on each page pointing to the same URL instead of the original URL. I don't have anything else managing my canonical tags. I posted my site details on my original post, please login to check.
·
Tuesday, 12 August 2014 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:
Hello Manish,
EasyDiscuss will actually add a canonical tag on the page to ensure that despite having several links that are linking to the same page, the correct one is used. However, I did noticed that there are 2 canonical tags on your site when I view the source of the page. Do you use any 3rd party extension to generate canonical tags?

Hello! I have the same problem. Also shows 2 tag rel="canonical"


<link href="http://takeprofit.pro/forum/portfel-avtora-proekta-takeprofit.html" rel="canonical" />
<link href="http://takeprofit.pro/forum/categories/portfel/portfel-avtora-proekta-takeprofit.html" rel="canonical" />


EasyDiscuss 3.2.9519
Joomla 3.3.3
·
Tuesday, 12 August 2014 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Pavel,

Which extension are you using to generate these canonical tags? Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Tuesday, 12 August 2014 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Manish Dhar wrote:

Yes, I do see the rel="canonical" but they all have it on each page pointing to the same URL instead of the original URL. I don't have anything else managing my canonical tags. I posted my site details on my original post, please login to check.


Can you please provide us with the back end and FTP access to investigate this?
·
Tuesday, 12 August 2014 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hello Pavel,

Which extension are you using to generate these canonical tags? Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

I have no third-party extensions for SEF. Using the default Joomla SEF
·
Tuesday, 12 August 2014 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Here are the site details again.
·
Tuesday, 12 August 2014 19:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

Just tried the back end and FTP and they both do not work. Please advise.
·
Tuesday, 12 August 2014 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
it works fine. Please check again I resubmitted it.
·
Tuesday, 12 August 2014 22:59
·
0 Likes
·
0 Votes
·
0 Comments
·
looks great thanks!
·
Wednesday, 13 August 2014 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Wednesday, 13 August 2014 12:36
·
0 Likes
·
0 Votes
·
0 Comments
·
That's how you had to do?

$parsed = $router->parse($uri);
$fakelink = 'index.php?' . http_build_query($parsed);
$link = $domain . JRoute::_($fakelink, false);

if ($uri !== $link)
if (JRequest::getVar('option') == 'com_easydiscuss') {
return;
}
}


Now it works rel="canonical" only in the discussion. And on the other pages of the site does not work.
·
Wednesday, 13 August 2014 15:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Pavel,

The hack that I have added will only prevent the plugin from adding it's own canonical tag on EasyDiscuss pages. It does not affect anything else. Anyway I am really confused here. Could you please start your own thread if you are still having issues?
·
Wednesday, 13 August 2014 23:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Do you want me to make a new thread as well? I also have the same canonical problem on the pagination for both my blog and the discussions.

http://wmpos.com/news/industry-news.html
http://wmpos.com/news/industry-news.html?start=3
http://wmpos.com/changelogs
http://wmpos.com/changelogs.html?start=3
·
Wednesday, 13 August 2014 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

Sorry I was referring to Pavel because you both don't have a profile picture and it was a little confusing when I was glancing through. I have added the codes below in Joomla's sef plugin file,


if (JRequest::getVar('option') == 'com_easydiscuss') {
return;
}


The canonical tag should appear fine now for EasyBlog
·
Wednesday, 13 August 2014 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Works great! thanks very much
·
Wednesday, 13 August 2014 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Wednesday, 13 August 2014 23:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I have the same problem on that pagination on the tags. They don't even show a rel="canonical" url. Please advise.

http://wmpos.com/blog/tags/tag/prepaid-cellular.html
http://wmpos.com/blog/tags/tag/prepaid-cellular.html?start=3
·
Thursday, 14 August 2014 03:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

Please replace the attached file in ../components/com_easyblog/views/tags/view.html.php. Hope this helps.
·
Thursday, 14 August 2014 12:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Is this a general bug so it is may interesting for all to upload this view.html.php?
·
Thursday, 14 August 2014 22:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick, it works great. I'm waiting for my next crawl to see the results.
·
Thursday, 14 August 2014 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Manish

Manuel,

Yes, you can fix it by temporary uploading the file to the tags view to fix the canonical tag.
·
Friday, 15 August 2014 02:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post