Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

switching locales in CMS adds extra '/admin' to URL

Go to End

3 Posts   1232 Views


Community Member, 103 Posts

13 March 2010 at 9:04am

Edited: 13/03/2010 10:56am


For some strange reason When I switch languages in the CMS it is messing up the URL. For example:

If I backspace the extra admin out then it loads properly. No idea how this is happening. From my _config.php:

Object::add_extension('SiteTree', 'Translatable');

$allowed_locales = array(
'en_US' => array('English', 'English'),
'pt_BR' => array('Portuguese', 'Português'),
'es_CL' => array('Spanish', 'Español')

i18n::$common_locales = $allowed_locales;

Thanks in advance!

Edit: I should add that I have a few other sites configured the exact same way, none of which are having this problem.

Edit: I just realized this only occurs in IE (which in my case is ie7) Any ideas for a fix?


Community Member, 1 Post

20 March 2010 at 2:16pm


I just had the same problem and found the solution:


line 18: document.location = 'admin/?locale=' + this.value;

change to this: document.location = '?locale=' + this.value;

and it works as it should.

Kind regads,


Community Member, 3 Posts

20 March 2010 at 8:02pm

Anybody know the answer?

golf clubs