A mess with category links

  • Posts: 29
  • Thank you received: 0
10 years 1 month ago #209765

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.26

Hi there!

The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:

homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli

There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi->sadovye-kacheli->2-mestnye-kacheli

but when I list categories with all their subs ( homenland.ru/tovary-dlya-dachi ), this link turns into homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli

That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli
Once again, I don't need double links and I don't need homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli instead of homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli
Whats the heck?

Though the top level parent categories seem to have proper links

P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category

Last edit: 10 years 1 month ago by Tim Moore.

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

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
10 years 1 month ago #209779

Hi,

Enter the URL that you want among the ones generated in the "canonical URL" field of your category/product and the system will always use it as long as you didn't turn off the "force canonical URLs on listings" setting of the HikaShop configuration.

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

  • Posts: 29
  • Thank you received: 0
10 years 1 month ago #209979

Unfortunately, whichever option I choose for "force canonical URLs on listings" nothing changes at all at behaviour - the link are still incorrect.
you can check here, any link for subcategory
homenland.ru/tovary-dlya-dachi
and compare it to appropriate links in top megamenu, i.e. "2-местные качели"

Attachments:
Last edit: 10 years 1 month ago by Tim Moore.

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

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
10 years 1 month ago #209980

You should keep the default value "Use canonical URL if specified".

Did you enter the URL that you want for your product in the "canonical URL" field ?
As I said, this is also necessary. Not just changing the "force canonical URLs on listings"setting.

If you don't see any change with the canonical URL specified and that setting set to "Use canonical URL if specified", then it means that you must have some caching on your website, preventing you from seeing the change (so try to clear the cache of Joomla), or that you have some view overrides of the listing view files of HikaShop in your template which don't support canonical URLs.

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

  • Posts: 29
  • Thank you received: 0
10 years 1 month ago #210141

I double checked all of the things you've mentioned above. Besides I've disabled all of the overrides. But none of these solved the issue.

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

  • Posts: 26272
  • Thank you received: 4044
  • MODERATOR
10 years 1 month ago #210200

Hi,

Did you enter the URL that you want for your product in the "canonical URL" field ?

Please provide us details about your configuration and the issue so we will be able to understand it clearly.

For example, the screenshot you gave ; I can find the first element that you pointed but I can't find the second one.. So it does not help to understand what you're talking about and for sure, the nature of the issue.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 29
  • Thank you received: 0
10 years 1 month ago #210221

Yes, there are canonical URLs everywhere. That is the point!

please enter here homenland.ru/tovary-dlya-dachi

See my screenshot above. You will see that links in top menu are different from links of sub-categories below, under categories' thumbnails, which are completely faulty. That is instead of homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli
i have homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli - which is not what I need. More over, those later links lead to nowhere. And there is category inside url, as well as alias is also with mistake

Maybe it would be better to grant you access?

Last edit: 10 years 1 month ago by Tim Moore.

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

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
10 years 1 month ago #210230

Hi,

Is the URL in the "canonical URL" field of your product/category the one used ?
If so, and if the URL is wrong, it means that you have the wrong one in the "canonical URL" field of your product/category.
As I said previously, you need to enter the URL that you want for your product/category in the "canonical URL" field of the product/category and that must be one of the valid URLs of the product/category.

If not, then the issue is with the listing which should use it instead of using another one and that can usually be explained because of caching or view overrides as I previously said. If you don't have a canonical URL in the product/category, and that the URL of the product/category on the listing doesn't work, then I don't see any other possibility than a caching or view override issue.

We can have a look to the backend, but the solution will be among what I said already. I don't see any other reason for what you describe to happen.

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

  • Posts: 29
  • Thank you received: 0
9 years 11 months ago #213831

We can have a look to the backend, but the solution will be among what I said already. I don't see any other reason for what you describe to happen.

Can you please contact me to provide you with access?

Last edit: 9 years 11 months ago by Tim Moore.

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

  • Posts: 26272
  • Thank you received: 4044
  • MODERATOR
9 years 11 months ago #213845

Hi,

Please use the "contact us" form
www.hikashop.com/support/contact-us.html

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 84293
  • Thank you received: 13693
  • MODERATOR
9 years 11 months ago #214032

Hi,

Thank you for the access. I see what was the problem.
It was only with the sub categories displayed below the categories on the categories listing.
That's because we forgot to change the link generated there to the new system, supporting canonical URLs.
I've change the line:
$link = hikashop_completeLink('category&task=listing&cid='.$child->category_id.'&name='.$child->alias.$this->menu_id);
to:
$link = $this->getLink($child);
in the file "listing_div" of the view "category" via the menu Display>Views so that it uses the new system and it seems to work fine on your website.
We'll add that change on our end too for the next version of HikaShop.

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

  • Posts: 29
  • Thank you received: 0
9 years 11 months ago #214036

Thank you! Hope this will help someone else

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

Time to create page: 0.076 seconds
Powered by Kunena Forum