We're launching a site that will be translated in the near future. In order to think ahead, is there a way for the default language to default to it's language prefix?

For example, for the time being, have to home page be domain.com/en instead of domain.com?

That way, when we translate the content all languages will start with their appropriate prefix.

Thanks

Comments

gionn’s picture

You can use the pathauto module for this purpose.

apemantus’s picture

1) Make sure there is a language code for English (there isn't one by default)
2) Set Language Negotiation to "Path prefix with language fallback."

Your pages should now be accessible under domain.com/en

hass’s picture

Status: Active » Fixed

Sounds fixed, if not this depends on core as I know and core does not support more than we currently have.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

stipica’s picture

doesn't work for me :-(