6

I'm using drupal 7 and i18n module.

I select the user language with the language code in the URL like this: mysite.com/fr/node/1 mysite.com/en/node/1 etc

The default language is French.

How could I manage to get only "mysite.com/node/1" when selected language is French? For now, I only get "mysite.com/fr/node/1". If I go to the root of my website "mysite.com", and I overlay the links, they're all pointing to "mysite.com/fr/...".

Is there anyway I could disable the /fr/ as the default language?

I tried playing around with the selection's rule weight, without success.

15

Under "admin/config/regional/language" you will see the list of languages. Click the edit link to edit the languages. In the edit screen, change the "Path prefix language code". If French is your default language, then keep this value blank for French.

  • 1
    This way works great with one exception. There is a side effect with the module "Administration menu". After deleting the language code all links of this menu were broken. In this case you have to remove manually the language code in the adressbar and clear the cache. – crashbus Nov 20 '12 at 15:34

protected by kiamlaluno Sep 22 '13 at 11:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.