Ticket #20489 - URL issue
Hi Fred !
I have a duplicate content issue because of URL problem in homepage source code. On language selector, the link on english flag is https://www.kalyca.fr/en/?controllerUri=index instead of https://www.kalyca.fr/en/. This two links point to the same page, so it creates a duplicate content issue. It’s OK on french link and on the other pages (except the blog ticket #20447).
How to modify this url, please ?
Thank you.
Comments
I think I have found the code that generates the bad link in this file : modules/ps_languageselector/ps_languageselector.tpl, but I am not competent for fix this problem...
Attachments:
Hi, Lynda.
We have tested out the theme locally and in out demo server and didn't find such problem.
Maybe you have changed something in your URL settings?
Me, no. Maybe you have changed this settings due to ticket 20447 : https://support.promokit.eu/?do=details&task_id=20447&project=3
There is the same issue on all language links on this Alysum Prestashop site : https://www.annedelona.com/fr/
1. No, that is not related
2. Where did you get that link? There is no such issue in our demo https://alysum5.promokit.eu/en/
It's the webshop of your customer Jean-Marie SAMEC that I found here : https://support.promokit.eu/index.php?do=details&task_id=20514&project=3&order=lastedit&sort=desc
Ok, I see.
We will check it out
P.S. Thanks for the awesome review!
Hi Fred !
Since the update, I have the issue on english and french flags links.
Attachments:
strange, we also added all fixed into the theme.
Could you please give me a link to a page where I can see the issue?
This issue is in homepage, blog and CMS pages.
Hi, Lynda.
I don't see the issue, maybe it was a cache?
Hi Fred.
What do you see in langage flags links on this page : https://www.kalyca.fr/fr/ (lines 661 and 666 of source code) ?
Semrush also sees the issue (screenshot).
Attachments:
The issue has been fixed. Please test to confirm the change
Updated file is
/themes/alysum/modules/pkheaderitems/views/templates/front/headeritems.tpl
Thank you very much for the fix ! I copy the tpl file to my child theme to not delete it at the next update.
Language selector doesn’t work properly.
Language selector always links you to the homepage,
even if we are on another page.
The issue has been fixed. Please test to confirm the change
Please keep a backup of this file to prevent issues in future /themes/alysum/modules/pkheaderitems/views/templates/front/headeritems.tpl
That's good. Thank you, Fred !
You are welcome!
Hi Fred !
I also have the problem in contact page : https://www.kalyca.fr/fr/contact.
But what is the problem?
The problem is the flag link of language selector. There is "?controllerUri=contact" at the end of URL. You fixed this issue on homepage and CMS pages but there is the same issue on contact page.
Attachments:
Please try now, should be ok.
Updated file is /themes/alysum/templates/mobile/modules/ps_languageselector/ps_languageselector.tpl
It's OK for the french but not for the english flag.
Attachments:
Could you fix that please ?
I'm sorry, I lost the ticket. I'll try to find a solution today or tomorrow
Please check it out now.
Keep a backup of this file /themes/alysum/modules/pkheaderitems/views/templates/front/headeritems.tpl
Thank you, Fred !
You are welcome!