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?
-
MODX Staff
- 730 Posts
Have you set the "Unauthorized page" setting in System Configation?
Oh, it was so easy! Works perfectly.
Thanks a lot.