Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using the logout coming from the login status snippet. If i'm using it from the home page, the member gets logged out but from any other page, the member stays logged in and I get redirected to the same page.
I've already tried different RedirectUrls but with no luck ("/", "~/", "/Login", etc ...)
Weird that it seems I'm the only having this problem for such a trivial thing as logging of.
After a lot of trial and error, I think there is a bug:
the logout from the loginstatus.cshtml snippet works well if you are not in a view coming from a surface controller.
If you try it from a view created by a surface controller, the postback link for the form created by the loginstatus snippet, calls the active controller where the HandleLogout action obviously doesn't exist.
If I hack in the browser the post back url to '/' (instead of /umbraco/surface/MyContoller) than the logout works.
Now I have to find out how the change the Html.BeginUmbracoForm. Attemps to do so didn't work until now.
Some assitance would be welcome and appreciated
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted