דלג לתוכן דלג לסרגל הצד
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

אזור זמן של התומך: Asia/Karachi (GMT+05:00)

נושא זה מכיל 0 1, יש ל 1קוֹל.

עודכן לאחרונה על ידי koon-aikG לפני שנה 1.

בסיוע: Waqas Bin Hasan.

מחבר פוסטים
יולי 16, 2024 ב־6:21 am #15958197

koon-aikG

Background of the issue:
We have a site where we utilize the language switcher functionality of WPML: קישור נסתר. We link to this site using tracking URL parameters, and those URLs are not language-specific. We want to ensure that the site switches to the user’s current language while maintaining the URL parameters. Our main thought was to base it off of the current language cookie, but all of the hooks we’ve tried fire after that cookie has already been set. We are following this documentation: https://wpml.org/documentation/support/browser-cookies-stored-wpml/

Symptoms:
The site does not switch to the user’s current language while maintaining the URL parameters.

Questions:
What is the best way to ensure that the site switches to the user’s current language while maintaining the URL parameters?

הנושא "[סגור] Non language-specific URL with parameters auto-switching to user's language" סגור לתגובות חדשות.