I have to build a multilingual website where you have to select your continent.
So you can choose America while your are in English but also America in Spanish. Europe in French, but also in English etc.
I have set language detection with path prefix on drupal 7. So my urls are like that domain.com/en/path-alias.
Some contents on my website will be hide for some continent but a lot of content will be the same so I dont want to do a multisite.
I wish to have urls like that domain.com/america/en/path-alias, domain.com/america/es/path-alias or domain.com/europe/fr/path-alias. I don't find any solution to do that.
The module domain access looks cool but is not exactly what i want cause it works with subdomains while i want path prefix.
EDIT : Ok i have found the solution of my problem in the drupal API.
This two hooks are exactly what i was looking for hook_url_inbound_alter, hook_url_outbound_alter