[SOLVED] Canonical urls on multilanguage site

  • Posts: 117
  • Thank you received: 6
7 years 9 months ago #274476

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 7.1.0
-- Browser(s) name and version -- : Firefox 54.0.1

There is a big problem...

Everyone knows that the site may appear duplicate pages, for example, the way to the product on the site is the following: shop/spagetti-dusty-rose, and when switching to the same product from the search results, it's different: component/hikashop/spagetti-dusty-rose. So we start using canonical links and everything works as it should until we add multilanguage support to the site. After that, for example, Russian link is the following: /shop/spagetti-dusty-rose and English link is the following: en/shop/spagetti-dusty-rose. I think you already understand what I'm driving at. I can specify only one canonical link for the product and if it is a link /shop/spagetti-dusty-rose then if I switch to the English version of the site, I do a search and go into the goods, I immediately get to the Russian version of the site for obvious reasons...

HikaShop does not provide canonical links for different languages, so I do not know how to solve this problem. And this has nothing to do with multilingual content (with translation).

Do you plan to add support for multilanguage canonical links?


Sorry for my English, it's not my native language.
Last edit: 7 years 9 months ago by alin. Reason: [SOLVED] added

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 9 months ago #274501

Hi,

HikaShop do provide canonical links for different languages.
If you use Falang as we recommend for the translations of your products, in the translation popup when you edit a product/category, you'll find a "canonical URL" input field so that you can provide a canonical URL for each product for each language.

The following user(s) said Thank You: alin

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

  • Posts: 30
  • Thank you received: 1
7 years 9 months ago #275812

I've also a problem with Canonical urls on multilanguage site.
When I use te Canonical input field at a product it works, but when I fill it in at the pop-ups for each language is doesn't work.

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 9 months ago #275813

Hi,

We would need more information about what you mean by "it doesn't work" in order to help you.
What URL did you use for canonical URLs ? What are the aliases that you set ?
What error did you get ? What were the links on the frontend ?

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

  • Posts: 30
  • Thank you received: 1
7 years 8 months ago #276481

See the attachments: when I fill the Canonical url in the Product overview it works, but when I fill the Canonical in the language NL-nl it doesn't work. The url is made in the menu for the language NL-nl.
The url that that i want to use: rigterhandelsonderneming.nl/bietengrijper

Attachments:

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #277077

Hello,

We can see that you use a different alias between the main configuration (English I guess) and NL.
Afterwards, I'm sorry but we do not have the requested elements to understand what is not working :

We would need more information about what you mean by "it doesn't work" in order to help you.
What URL did you use for canonical URLs ? What are the aliases that you set ?
What error did you get ? What were the links on the frontend ?

You have the same canonical URL for your two elements and you have to understand that HikaShop do not override the Joomla routing system so you can't use any URL you want for the canonical, the URL and you need to use an URL which can work, which can be routed by Joomla to HikaShop.

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: 30
  • Thank you received: 1
7 years 8 months ago #277149

When I Use the main configuration Canonical URL it works, but then it is the same Canonical URL for all the languages and I want a different one for each language.
When I delete the main configuration Canonical URL and only fill the Canonical url within the language popup (one for english, one for dutch, one for french and one for German) the Canonical URL doesn't work

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 8 months ago #277151

Hi,

Remove all the canonical URLs of the product and make sure that your HikaShop configuration is configured to only use the canonical URLs if filled.
That way, HikaShop will generate itself the URLs.
Then, if you have a different alias for each language for that product, you should be able to see the valid URL that HikaShop/Joomla's SEF system generate for the product in each language using the alias of each language.
And you can set these URLs as canonical URLs in each language of the product and it should work fine.

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

  • Posts: 30
  • Thank you received: 1
7 years 8 months ago #277220

Sorry, still doesn't work :-(

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 8 months ago #277225

Hi,

What do you mean ? We need precise information to be able to help.
You get an error when you use the links ?
What error ?
What links are generated for each language ?
Can you provide a screenshot of the settings of the product ?

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

  • Posts: 30
  • Thank you received: 1
7 years 8 months ago #277273

I don't get an error. The link that opens is not de Canonical one. For example, the the link for dutch is still: www.rigterhandelsonderneming.nl/nl-NL/hi...shofer-bietengrijper where it should be: www.rigterhandelsonderneming.nl/nl-NL/bietengrijper or www.rigterhandelsonderneming.nl/bietengrijper
In the attachments the screenshots

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #277308

Hello,

I'm sorry but it's still not possible to understand or see what problem you're talking about.
Where are the links that you're talking about ?

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: 30
  • Thank you received: 1
7 years 8 months ago #277377

Hi,

Is it possible that I send you an private message with login details so you can try/see for yourself?

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 8 months ago #277389

Please use our contact form for that:
www.hikashop.com/support/contact-us.html
And please include a link to this thread and specific instructions to reproduce the problem.

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 7 months ago #279358

Hi,

I got the access and your email.
I fixed the aliases of the product you gave as an example and entered the canonical URLs as they should be and it works just fine for me.

Regarding the description which isn't displaying, I don't know. If you enter a description in the main product, this one displays fine. It means that the issue is that Falang doesn't find the translations for the description to replace it.
I'm afraid you'll have to contact the Falang support regarding that.

The following user(s) said Thank You: Lambersm

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

Time to create page: 0.090 seconds
Powered by Kunena Forum