Wrong URLs on translated domains
-
Hello,
please I can′t get through one issue I have with Polylang plugin.
I have default language set to CS:
https://iof.tomatolaboratories.com…and alternative language set to EN
https://iofen.tomatolaboratories.comBoth domains are directed to the same directory on the server. Polylang is set to different domain per each language. There is also checked, that homepage will have only language selector in URL, not it’s name. Permalink structure is set to Post name option.
When I look into the source code on EN site, I can see that URLs of CSS and JS (and others) are linking to CS domain, instead of EN. And this causes problem with displaying FontAwesome icons due to CORS (Cross-Origin Resource Sharing). These files are inserted through the wp_enqueue_* functions, where URLs are constructed with the get_template_directory_uri() function.
So my question is what can I do to fix these URLs of CSS, JS and other links? I mean via some smart low-level tweaks, not hardcoding URLs of these files into the source code ??
Thank you very much for the support and also for excellent Polylang plugin.
Martin
- The topic ‘Wrong URLs on translated domains’ is closed to new replies.