- Posts: 59
- Thank you received: 1
CATEGORY_CANONICAL not updating correctly
Is there any other way to resolve this?
Please Log in or Create an account to join the conversation.
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.
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.
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.
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.
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.
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.
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.
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
Please Log in or Create an account to join the conversation.
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.
Details sent.
Please Log in or Create an account to join the conversation.
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.
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.
" if ($uri !== $link)
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
"
Is there anything to add to force this not to run on Hikashop pages?
Please Log in or Create an account to join the conversation.
" if ($uri !== $link)
{
if (JRequest::getVar('option')!=='com_hikashop'){
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}
}"
So this will stop the canonical showing on Hikashop pages.
Please Log in or Create an account to join the conversation.