I've used Umbraco for awhile now, however, I've never used a node's Public Access feature till recently.
I've enabled it on a few nodes that require the member be logged in and it's redirecting to the login page I've assigned it properly. What should I use for the return url though? My login controls usually use a value with the key of ReturnUrl from either the querystring or a session value, but there doesn't seem to be any similar values in either of those spots.
I do see that the browser url has persisted from the previous page and there are a couple of values in the current context item dictionary that point there as well.
Am I doing something wrong or is it just as simple as doing a redirect to one of the properties in Request.Url?
When you use the Public Access functionality you stay on the same page as you mentioned. Only a different page is rendered. So you could use one of the properties in Request.Url indeed.
Public Access - Any ReturnUrl?
I've used Umbraco for awhile now, however, I've never used a node's Public Access feature till recently.
I've enabled it on a few nodes that require the member be logged in and it's redirecting to the login page I've assigned it properly. What should I use for the return url though? My login controls usually use a value with the key of ReturnUrl from either the querystring or a session value, but there doesn't seem to be any similar values in either of those spots.
I do see that the browser url has persisted from the previous page and there are a couple of values in the current context item dictionary that point there as well.
Am I doing something wrong or is it just as simple as doing a redirect to one of the properties in Request.Url?
Hi,
When you use the Public Access functionality you stay on the same page as you mentioned. Only a different page is rendered. So you could use one of the properties in Request.Url indeed.
Cheers,
Richard
Thanks for that Richard.
Seems like the easiest way of handling it. Simplicity for the win!
Hi Guys,
Once user will be redirected to the login page, how can notify user that he was redirected and not just going to to login page?
Thank you for your help.
Kind Regards
is working on a reply...