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
Logout does not work
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
I'm hitting what seems to be the same issue. I'm using some views with custom controllers and the logout indeed does not work.
Did you create a GitHub issue for this?
is working on a reply...