This question has been answered by galahad5. See the first response.
Have you tried using &redirectToPrior=`1` in the Login snippet tag? If I'm understanding you, it may do what you want.Thanks, but I already had that in the snippet. The complete call is as follows, it includes some Discuss hooks so that the user can also go into the Discuss forums on the site from a link, if they want to. I wonder, is there anything wrong with the snippet code?
[[!Login? &loginTpl=`lgnLoginTpl` &logoutTpl=`lgnLogoutTpl` &errTpl=`lgnErrTpl` &loginResourceId=`19` &logoutResourceId=`18` &preHooks=`preHook.DiscussLogin` &postHooks=`postHook.DiscussLogin` &redirectToPrior=`1`]]
This is the default behavior when configured correctly.Unfortunately I don't see any way of applying Load permissions to a resource Group. I can apply the permission in general for Anonymous, but not for a Resource Group by the looks of it.
To get this:
anonymous Users need to have "Load" priviliges to this resource group. So When you click em, you get an 301 Unauthorized instead of an 404 Not Found.
You need to configure the unauthorized_page to your Login-Page
The Login Page Form, should not have an action
The Login Snippet should have no loginResourceId
Then you just Link to the member Pages, or users click them out of their favorites, history, etc.
Modx uses an sendForward to display the login Page, with the url of the previous Page. As Soon as the Users is logged in, they will stay on the url, seeing the member content.
Unfortunately I don't see any way of applying Load permissions to a resource Group. I can apply the permission in general for Anonymous, but not for a Resource Group by the looks of it.