Hey I just switch my site to a multilanguage site.
The english page loads the home.php template like it’s suposed to do but when I switch from english to dutch it loads the default.php template instead of the home.php template.
My config looks like this;
c::set('language.detect', true);
c::set('languages', array(
array(
'code' => 'en',
'name' => 'English',
'default' => true,
'locale' => 'en_US',
'url' => '/',
),
array(
'code' => 'nl',
'name' => 'Dutch',
'locale' => 'nl_NL',
'url' => '/nl',
),
array(
'code' => 'de',
'name' => 'Deutsch',
'locale' => 'de_DE',
'url' => '/de',
),
));
When I change my config to this it works fine:
c::set('language.detect', true);
c::set('languages', array(
array(
'code' => 'en',
'name' => 'English',
'default' => true,
'locale' => 'en_US',
'url' => '/en/home',
),
array(
'code' => 'nl',
'name' => 'Dutch',
'locale' => 'nl_NL',
'url' => '/nl/home',
),
array(
'code' => 'de',
'name' => 'Deutsch',
'locale' => 'de_DE',
'url' => '/de/home',
),
));
But this leaves the /home in the url when I change to the blog /en/home/blog and I don’t want that.
Does anybody knows how to fix this?