Admin Landing Page with Multiple Language Setup

Permalink
We are setup with all of our language site structures on the second level so when going to domain.com it redirects to domain.com/en (with pretty urls enabled). This works fine for the website itself but when we login to the admin it brings us to domain.com/index.php which is not actually a page on the site (also doesn't show navigation since it doesn't exist at that level).

 
andrew replied on at Permalink Best Answer Reply
andrew
I'm not getting this on my local installation of 5.7 (out of github). If I designate a default locale, and I redirect to the home page of the default locale, when I log out and log in, I'm automatically redirected to the home page of the default locale.

This happens in DispatcherRouteCallback.php with this code:

if (Config::get('concrete.multilingual.enabled')) {
            $dl = Core::make('multilingual/detector');
            if ($c->getCollectionID() == HOME_CID && Config::get('concrete.multilingual.redirect_home_to_default_locale')) {
                // Let's retrieve the default language
                $ms = $dl->getPreferredSection();
                if (is_object($ms) && $ms->getCollectionID() != HOME_CID) {
                    Redirect::page($ms)->send();
                    exit;
                }
            }
            $dl->setupSiteInterfaceLocalization($c);
        }


Which doesn't do any checking against user account, so it shouldn't be any different based on whether you're logged in or not.
swiz replied on at Permalink Reply
Thanks Andrew! Looks like this was resolved post 5.7.3.1:

https://github.com/concrete5/concrete5-5.7.0/blob/5.7.3.1/web/concre...