I need to have the ability to only allow "Authenticated" user roles to access the members folder and below of my website.
My site is setup as follows:
If a user clicks on \root\Members or any other link below \root\Member, I would like to have them redirected to the login page.
Inside of SiteFinity (4.0), I have the "Members" page setup as a group page and the role permissions allow for "Authenticated" users to allowed and "Anonymous" users to deny.
Inside of my web.config, I have my forms and custom errors sections setup as follows:
<forms loginUrl="~/login" defaultUrl="~/Members/" timeout="60" />
<customErrors mode="On" defaultRedirect="~/login">
<error statusCode="403" redirect="~/login" />
When a user who is not yet "Authenticated" visits \root\Members, there appears to be a 403 error sending the user to the login page.
The url that gets returned is as follows:
On my login page, I have a login control that allows the user to enter their username and password. If the credentials are valid, I am able to login, however, I am not redirected to the original destination page that the user originally clicked on (for the example above /members).
How do I setup the sitefinity Login control to redirect the user to their original page, especially since the query string is showing "?aspxerrorpath" when I think it should be showing "?ReturnUrl/members"