I'm implementing CiviCRM + Wordpress + WPML for multiple languages on frontend pages. WPML provides the option of switching languages in two ways: via a URL parameter or a path parameter. For example:
- standard link: https://mysite.org/civicrm/contribute/transact/?reset=1&id=13
- url param: https://mysite.org/civicrm/contribute/transact/?reset=1&id=13&lang=es
- url path: https://mysite.org/es/civicrm/contribute/transact/?reset=1&id=13
I'm finding that in either of the URLs where the language is designated, it breaks all css/js resource links on the page. For example:
I have no idea why the use of the parameter converts the css reference into the non-pretty links version, or why it prepends the language parameter to the beginning of the URL (which is why it breaks things).
Anyway -- I'm wondering if anyone has run into this and has suggestions for using WPML with Civi. I'm pretty stumped.
I should note -- either language-switch option does result in the Civi page being translated as expected. It just completely breaks the site design because all css/js links fail to load.