Skip to main content

CATEGORY_CANONICAL not updating correctly

More
12 years 3 weeks ago #170956 by boxchilli
I've added a new url path into the category canonical however it still seems to have /product/listing" inside the canonical tag.

Is there any other way to resolve this?

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

More
12 years 3 weeks ago #170983 by Jerome
Hi,

I am sorry but I can't follow you.
Would it be possible to have more details about what you are doing/modifying, what "changed" or "not changed" ?

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
12 years 2 weeks ago #171133 by boxchilli
I'm trying to update the field "CATEGORY_CANONICAL" on the category I've got setup.

The URL via the menu is www.mydomain.com/categoryname but the canonical on that page is www.mydomain.com/categoryname/product/listing .

After entering the same URL as the menu, saving the page and clearing Joomla's cache the category canonical is still www.mydomain.com/categoryname/product/listing .

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

More
12 years 2 weeks ago #171144 by nicolas
Hi,

So you're saying that you currently have www.mydomain.com/categoryname/product/listing in the canonical URL field of your category, and that you change it to www.mydomain.com/categoryname and after you click on save it's back to www.mydomain.com/categoryname/product/listing as if it didn't save successfully ?
In that case, it would mean an error with the saving query to the database.
Turn on the "debug mode" of the Joomla configuration and try again and that should display an error with a MySQL query. And in that case, clicking on the "check database" button of the configuration of HikaShop (provided that you have the latest version of HikaShop), should fix the problem. Otherwise, please provide the error message.

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

More
12 years 2 weeks ago #171258 by boxchilli
Hi Nicolas.

Sorry for not being more clear on this. The edit category page still has the Canonical I've entered in "CATEGORY_CANONICAL" (so it's saving correctly if I go in and out of the category). The front end of the website just has www.mydomain/com/categoryname/product/listing as the canonical.

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

More
12 years 2 weeks ago #171298 by nicolas
Hi,

We don't have the problem on our end.

Could you provide a screenshot of the configuration of your category and the link to the page with the canonical tag so that we can see that ?
Also, could you provide the version number of Hikashop you're using ?

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

More
12 years 2 weeks ago #171930 by boxchilli
The screenshot is viewable here

The page I'm working is www.cartronix.co.uk/repair-services/speedometer-repair were if you check the source code you'll see the canonical goes to www.cartronix.co.uk/repair-services/spee...pair/product/listing

Version HikaShop [1312231536]

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

More
12 years 2 weeks ago #171942 by Xavier
Hi,

You version is not up to date, this one is from december 2013 so many things have been improved regarding the canonical urls.
Thanks to update your version and see if the problem is solved.

ps: don't forget to do a backup before anything ;)

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

More
12 years 2 weeks ago - 12 years 2 weeks ago #172062 by boxchilli
Hi.

I've done the update on the site. I've resaved the category and still the same.

The canonical is still <link href=" www.cartronix.co.uk/repair-services/spee...pair/product/listing " rel="canonical" />
and should be www.cartronix.co.uk/repair-services/speedometer-repair
Last edit: 12 years 2 weeks ago by boxchilli.

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

More
12 years 2 weeks ago #172065 by Xavier
Hi,

Thanks to provide a backend access via private message, don't forget to give us the url of that topic.

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

More
12 years 2 weeks ago #172200 by boxchilli
Hi Xavier.

Details sent.

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

More
12 years 2 weeks ago #172310 by Jerome
Hi,

If you look at the code source of the page
www.cartronix.co.uk/repair-services/speedometer-repair

You will see that the "canonical" is set twice.
The second one is added by HikaShop ; for the first one I can't tell you, maybe a plugin or the template.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
12 years 1 week ago #172476 by boxchilli
Hi.

We don't have a plugin which creates Canonical and we're using the gantry framework for the template.

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

More
12 years 1 week ago - 12 years 1 week ago #172485 by boxchilli
I've found the problem which is the Joomla Sef Plugin with the code
" if ($uri !== $link)
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
"

Is there anything to add to force this not to run on Hikashop pages?
Last edit: 12 years 1 week ago by boxchilli.

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

More
12 years 1 week ago #172508 by boxchilli
For anything else having this issue. I've added to sef.php on line 53
" if ($uri !== $link)
{
if (JRequest::getVar('option')!=='com_hikashop'){
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
}"
So this will stop the canonical showing on Hikashop pages.
The following user(s) said Thank You: Xavier

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

Time to create page: 0.254 seconds
Powered by Kunena Forum