i try to follow the doc example for multi-languages site http://getkirby.com/docs/languages/switching-languages but in the foreach

foreach($site->languages() as $language) {

but i don’t have the expected URL

For example: my URL


expected URL


URL generated in the foreach $page->url($language->code())


(a /partner URL exist in my content directory)

Any idea?

The default language can be accessed without the language code in the URL. You have to change the url attribute of the English language definition to make it work like you want it to: http://getkirby.com/docs/languages/setup

this is my configuration

c::set(‘languages’, array(
‘code’ => ‘it’,
‘name’ => ‘Italiano’,
‘default’ => true,
‘locale’ => ‘it_IT’,
‘url’ => ‘/’,
‘code’ => ‘en’,
‘name’ => ‘English’,
‘locale’ => ‘en_US’,
‘url’ => ‘/en’,

Ah, OK. So it’s the other way around.
What exactly does not work at the moment?

if i am in the page


the language url in the navbar is




user/stefano is simply a page in the content directory?

And maybe could you pls. give a brief outline of your structure in the /content folder?

yes i have a user folder and inside i have


other dir are


But then it doesn’t make any sense why the link becomes /en/partner. Could you please post your full template for the user page?

And this piece of code looks a bit strange as well, what is that supposed to do? It doesn’t create any links or whatever …