We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27167
    • 31 Posts
    Hi everyone,

    after upgrading to 2.3, I'm experiencing a weird redirect after a successfull login to manager.
    Im accessing the manager interface via https:

    https://mgr.mydomain.com/mgr/

    I enter my (correct wink credentials and then hit the Login Button. The usual POST Request for the Login Processor is fired and then I receive a 302-Redirect to the "same" URL without SSL and without the trailing slash

    POST https://mgr.mydomain.com/mgr/
    login_context=mgr&modahsh=&returnUrl=%2Fmgr%2F&username=*****&password=*****&login=1
    HTTP/1.1 302 Found
    Location: http://mgr.mydomain.com/mgr
    

    This then leads to an 404 Error, as I don't allow non https-Requests to this VHost.
    Obviously: When I hit browser back the Manager interface shows up correctly (as the login itself was successful)... It is just very annoying to tell all users to do this every time they login...

    What I also found out:
    When I send new users the automatic mails from MODX with their credentials, one of the placeholders for the E-Mail Content gets assigned a very strange value:

    "Once you log into the MODX Manager at http://mgr.mydomain.com/mgrhttps://mgr.mydomain.com/mgr/, you can change your password."

    I had a look at the processor and found this line where the placeholder [[+surl]] is set:

    'surl' => $this->modx->getOption('url_scheme') . $this->modx->getOption('http_host') . $this->modx->getOption('manager_url'),


    However, this is where I don't know where to dig any further... Has anybody experienced this issue and could help me with this?

    Cheers!

    Siar