Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problème :
Le client a rencontré un problème avec les URL dans le fil d'Ariane de Yoast SEO sur les pages traduites, qui créaient des redirections indésirables. Après avoir utilisé le plugin Yoast test & helper pour réinitialiser l'optimisation de Yoast, les liens étaient corrects, mais le client s'interrogeait sur la nécessité de garder l'option "Auto sign-in and sign-out users from all domains" activée.
Solution :
Nous avons conseillé au client de :

  1. Vérifier que l'option "Auto sign-in and sign-out users from all domains" est activée dans WPML > Langues, sous l'option "A different domain per language".
  2. Enregistrer les paramètres.
  3. Aller dans "settings > permalinks" et resauvegarder la structure des permaliens.
  4. Se déconnecter du site, puis se reconnecter depuis le domaine secondaire (en.matakwa-safaris.com).
  5. Effacer les caches du site et du navigateur.
  6. Aller dans Yoast SEO > Outils et cliquer sur le bouton "Start SEO data optimization".

Nous avons également informé le client que l'option "Auto sign-in and sign-out users from all domains" est importante pour assurer que les données de session, les cookies et d'autres informations nécessaires soient copiés entre les domaines, et qu'il est conseillé de la garder activée pour une fonctionnalité optimale.

Si cette solution ne s'applique pas ou est dépassée, ou si le client rencontre des problèmes de performance en gardant cette option activée, nous recommandons de vérifier les problèmes connus, de confirmer la version du correctif permanent et de s'assurer que les dernières versions des thèmes et plugins sont installées. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Prosenjit Barman Il y a 11 mois.

Assisté par: Prosenjit Barman.

Auteur Articles
mai 4, 2024 à 10:33 am #15593328

Stéphane

Bonjour,

Je vois dans le fil d'Ariane de Yoast sur les pages traduites que l'URL est lien caché, ce qui crée une redirection sur chaque page.
Comment obtenir ceci lien caché à la place ?
Par avance, merci de votre aide.

mai 6, 2024 à 6:30 am #15595123

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contactiing WPML Support. Sorry for the delay in responding due to the weekend.

To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or want to continue the conversation in French. I will check and forward this ticket to one of our French supporters to assist you further in the French language.

I understand the issue you're experiencing. Could you please navigate to "Settings > Reading" in your WordPress dashboard and ensure that you have chosen the "A static page (select below)" option and then selected the appropriate page as your homepage? Sometimes, this kind of issue may occur due to not selecting a homepage.

But, if the issue persists even after that, please try the following:

- Please cleaar the caches from your site. As you're usiing Object cache, maake sure to clear those caches as well.
- Once done, go to WPML > Support > Troubleshooting
- Click on the following buttons:
-- Synchronize posts taxonomies [Select 'Pages' from the Dropdown and then click the button]
-- Clear the cache in WPML
-- Assign translation status to duplicated content
-- Set language information
-- Fix post type assignment for translations
- After that, go to "Settings > Permalinks" from your Dashboard and save the permalink structure.

Please let me know if that helps in solving tthe issue or if yoou need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

mai 9, 2024 à 11:18 am #15610133

Stéphane

Hi,

I did follow all those steps, but the breadcrumbs in English still displays home. If you want to see for yourself here : lien caché (in French) and then the English version : lien caché

What else can I do?

Best regards,

mai 10, 2024 à 5:05 am #15612557

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for trying out the suggestions.

As the language URL format is currently set to the different domain per language, would yoou please check by passing the cookies and other information to the secondary domain? Here's what you can do:

- Please go to WPML > Languages
- Under the "A different domain per language" option, you'll find an option named "Auto sign-in and sign-out users from all domains". Make sure that option is selected. Save the settings.
- After that go to "settings > permalinks" and resave the permalink structure.
- Once done, logout from your site. Then login again from the secondary domain(en.matakwa-safaris.com). By doing so, the session data and cookies will be copied to the secondary domain.
- Clear the caches from your site and browser
- Go to Yoast SEO > Tools and click on the "Start SEO data optimization" button

I hope the information above will help. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

mai 10, 2024 à 12:06 pm #15614569

Stéphane

Hi,

Thank you for your message.

It kind of worked: the home link in the breadcrumds (in English) indeed was lien caché, which is great.

But the link in the French breadcrumbs became lien caché and then a redirect towards lien caché

However, I noticed something: I installed the Yoast test & helper plugin, to reset the Yoast optimization. While not optimized, no redirects are applied ion the breadcrumbs, the links are both correct in English and French. I figure I will keep it that way since it works.

Do I need to keep the option "Auto sign-in and sign-out users from all domains" activated or can I untick the box (since there's a slight loss in performance)?

Best regards,

mai 13, 2024 à 5:40 am #15618525

Prosenjit Barman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I'm glad to hear that the suggestions were helpful. Regarding the new issue you mentioned with the French pages, I checked and found that the homepage link in the breadcrumb of the French version is also displaying correctly. I haven't noticed any redirects there. Please check the attached screenshot.

Would you please clear the site and browser's coaches and then check again?

Enabling the 'Auto sign-in and sign-out users from all domains' option will ensure that session data, cookies, and other necessary information are copied across domains. Without this option enabled, you might encounter issues such as the Admin bar not appearing on secondary domains or certain plugin configurations not being carried over. Therefore, it is advisable to keep this option enabled for optimal functionality.

Although we haven't received any reports of performance issues caused by this option, if you're experiencing problems, you can create a new ticket detailing the performance issues you've encountered while this option is enabled. Please include as much information as possible. We will be happy to investigate further.

Feel free to let me know if you need further assistance or clarification in this matter.

Best regards,
Prosenjit

Screenshot 2024-05-13 113137.png