By romagromov on Tuesday, 07 April 2015
Posted in General
Replies 7
Likes 0
Views 0.9K
Votes 0
Hi!
I found code -
<base href="http://macburo.com/latest" /> 


and

<link rel="canonical" href="http://macburo.com/latest"/>

on mainpage in source code

But this page is a clone of mainpage, so it is duplicate page.

How to remove it? I want mainpage to be as canonical.
And I no need /latest page at all.
Thanks.
Hi Romagromov,

Sorry for late reply to this,
Unfortunately that frontpage canonical is not control by us
Perhaps you consult with Joomla developer regarding this and see how it goes?
Because you show me that canonical is actually handled by Joomla System - SEF plugin.
·
Wednesday, 08 April 2015 13:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, how to replace /latest with index page?

How to remove site.com/latest ?
·
Wednesday, 08 April 2015 14:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi romagromov,

Sorry for late reply to this,

Unfortunately that was not possible to change it to index page.

By the way, you can open this file -> JoomlaFolder\plugins\system\sef\sef.php and commented out this few line of code

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


so when you view page source it could be only show 1 Easyblog canonical link.

If you would like to remove the /latest URL, you can modify from this file ->

//LINE 101
$canonicalUrl = EasyBlogRouter::getRoutedURL( 'index.php?option=com_easyblog&view=latest' , false , true, true );
//Replace with
$canonicalUrl = EasyBlogRouter::getRoutedURL( 'index.php?option=com_easyblog' , false , true, true );


Hope this help.
·
Wednesday, 08 April 2015 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
I can't understand which file to edit... You forgot to include it.

I don't want to remove canonial.
All I want - is kill duplicate page.
I my case, site.com and site.com/latest - is same pages.
May be, it because mainpage menu item is EasyBlog ยป Frontpage Blog Layout
By the way, I can't find any easyblog page, that contains link to site.com/latest...
I found this link in google serp.
·
Thursday, 09 April 2015 05:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Romagromov,

I am sorry for the confusion caused. You can find the file from your /components/com_easyblog/views/latest/view.html.php and the code is located at line 101.
·
Thursday, 09 April 2015 11:29
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Thursday, 09 April 2015 15:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Romagromov,

It work fine now.
You seems like just missed up 1 of the step -> JoomlaFolder/plugins/system/sef/sef.php
I mentioned above -> http://stackideas.com/forums/how-to-remove-latest-as-canonical#reply-195241
·
Thursday, 09 April 2015 17:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post