We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Having a document that belongs to a web group with protected access, I observed that visitors are redirected to document with id=1 if they try to access the protected document when they are not logged in.
    This occurs despite the MODx root as set in the configuration is not document #1.

    The concerned page is a WebLoginPE "profile" page and I want it accessible only when the user is logged in. This works. The problem is when the user is not logged, and he tries to access again the profile page. The problem is not caused by WebLoginPE. If I remove the snippet call, the problem remains.

    The redirection would not be a problem in fact as long as one can choose the destination document.
    And document #1 is not suitable in my case.

    Did I miss something?
      • 21257 MODX Staff
      • 730 Posts
      Have you set the "Unauthorized page" setting in System Configation?
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 15001
        • 697 Posts

        Oh, it was so easy! Works perfectly.

        Thanks a lot.