Hi all,
I have a complicated set up here with language sub-domains pulling and translating some content from the site.
My problem is, links get changed by something after I call l() and return it, and I don't know where.
Let's say I have 2 domains:
- example.com for English content
- fr.example.com for French
All links are absolute by a language negotiation url_rewrite function.
Now, if someone is on a French page that returns
return l('page title', 'some-page', array('language' => $language_english));
I get "fr.example.com/some-page" as link (which is incorrect). But using url() or some re-writing of the link
return htmlentities(implode(' ', str_split(l('page title', 'some-page', array('language' => $language_english)))));
// Or:
return url('some-page', array('language' => $language_english));
it comes out as "example.com/some-page".
I checked all proprocess functions and templates but couldn't find anything.
I'm using the Omega theme, any tips how I can debug this?
Btw: Adding a subdomain for English (en.example.com) fixes this but I would like to avoid that.
Many thanks,
elpuzzo