Closed (works as designed)
Project:
Internationalization
Version:
7.x-1.8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2013 at 16:44 UTC
Updated:
11 Oct 2013 at 16:50 UTC
I am using language selection by language domain in Drupal 7. That has the side effect, that all internal Drupal pathes being created as absolute pathes by the i18n module.
To get subdomains working again I want to alter the pathes that are translated by i18n. Is there a hook I could use for that?
The function hook_url_outbound_alter() is triggered before the path translation by i18n, so it can't be used for that purpose.
Comments
Comment #1
drclaw commentedYou could try hook_translated_menu_link_alter(). Here's an example:
Comment #2
drclaw commentedAlthough I guess that's only good it it's a menu link...
Comment #3
jose reyero commentedI don't think it's i18n as all these links are produced by Drupal core now. And anyway, if you use different domains for languages that's just how it's suppossed to work.