Search code examples
openedx

CMS sign in redirect to lms login page in open edx


After adding SSL in both URL LMS and CMS, I am facing one issue in CMS login. When I click on CMS sign in button then it is redirecting to LMS login page. Is there any configuration to resolve this problem?


Solution

  • You should change the lines code below in the next file:

    /edx/app/edxapp/edx-platform/cms/envs/common.py

    #LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/home/'
    LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/signin'
    #LOGIN_URL = reverse_lazy('login_redirect_to_lms')
    LOGIN_URL = EDX_ROOT_URL + '/signin'
    

    And finally restart services with:

    sudo /edx/bin/./supervisorctl restart lms cms edxapp_worker:
    

    Greetings