Search result for other languages go to 404-page

  • Posts: 20
  • Thank you received: 0
9 years 4 months ago #208477

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

When configuring the Hikashop search plugins everything seems to work ... for the default language.
For the other languages (4 now but more to come) however I get a 404 whenever I click on a link to a product that was found in the hikashop.
I've been looking for the answer in the forum but can't find this specific problem (or a solution to this problem)...
"Force canonical URLs on listings" is set to "No, generate the URL's" because I noticed some unexpected behaviour when this was set to "use canonical url if specified" (when browsing the products in our catalog the language seemed to change for the whole site)
the regular content that shows up in the search results does work ... only products from the Hikashop don't.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 4 months ago #208485

Hi,

1. That's probably because the menu item id that you entered in the menu item option of your HikaShop Products search plugin comes from a menu item which is restricted to only one language. And since you configured the "Force canonical URLs on listings" setting to calculate the URLs dynamically, the system will calculate the URL to the product each time.
The problem is that if the current language and the language of the menu item used by the plugin are not the same, the generated link will be rejected by the SEF system of Joomla when you click on it and you'll get a 404 error.
The solution is to enter the id of a menu item which isn't restricted to one language.
Ideally, instead of translating your menu items by creating different menu items and assigning each to a different language, it's better to setup only one menu item and translate it using Falang or JoomFish.

2. The behavior you're describing when you activate the "Force canonical URLs on listings" indicates that you have a canonical URL configured in your product but that you didn't configure a canonical URL for that product for each language. So the system uses always the same URL, regardless of the language. If you specify a canonical URL for each language with the correct language tag in it, you'll get the correct behavior when you activate the "Force canonical URLs on listings" setting.

The following user(s) said Thank You: yvo_wilms

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

  • Posts: 20
  • Thank you received: 0
9 years 4 months ago #208557

That was exactly what was wrong ... thank you ...
the canonical urls ... i will leave them the same as it was ... all my products are imported via cron directly from our erp-software ... since there is no url in our erp (and certainly no url per language) our IT-team would not be pleased if they have to come up with something like this ... ;-)

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

Time to create page: 0.046 seconds
Powered by Kunena Forum