-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Description:
When using Dokan with WPML configured in different domains per language mode, the language switcher may generate invalid URLs containing an extra domain prefix. I tested this locally and found that the issue is there.
Screenshots:
Broken URL: https://d.pr/i/SV1CzU
WPML configuration: https://d.pr/i/p5KAfL
Steps to reproduce:
- Go to WP admin > WPML > Languages > Language URL format
- Choose the option "A different domain per language" and hit save.
- Go to the site's home page and try switching to another language. Observe the switcher link. Disabling the Dokan WPML plugin fixes the issue immediately.
Expected behaviour:
The switcher link should correspond to the setting instead of breaking the URL when Dokan WPML is enabled.
Other information:
- Related discussion: https://wpml.org/fr/forums/topic/url-casse/
- Workaround suggested by the WPML support team: https://wpml.org/errata/dokan-the-language-switcher-generates-malformed-urls-when-using-different-domains-per-language/
I tested the fix in my local environment, and it appears to be working as expected.
CC: @jamil-mahmud bhai
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels