-
- 111 Posts
On my site it works properly (both loginResourceId and redirectToPrior). I use MODX 2.2.4 and Login 1.8.0
So, you land on login page, but you are logged in ?
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
-
- 160 Posts
Yes, so the login page displays the logout template.
-
- 111 Posts
Is login page = your home page ?
What pages you have set for Unauthorized and Unavailable (404) ?
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
-
- 160 Posts
Login page is resource id 2, everything else is set to the home page.
-
- 111 Posts
I have no more ideas, it's working on my setup, so it works (at least sometimes). It must be some difference in configuration.
I use XAMPP 1.7.7 on localhost and on Windows Server, MODX is configured for relative paths, FURL mode = on, login pages configured as in Login Tutorial.
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
-
- 160 Posts
I even tried updating to 2.2.4 and it doesn't want to work. I was hoping there was some hidden setting somewhere that was causing the problem. I am on a basic hosting service.
-
- 111 Posts
This looks like the same solution as removing loginResourceId parameter from Login snippet, it's good it works for you now
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
-
- 24,544 Posts
Yes, if both &loginResourceId and &redirectToPrior are set, the snippet has no way of knowing which one to use.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html