-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logout and redirect without JavaScript #86
Comments
Ah well, from what I see, Addict is heavily oriented to JavaScript; the rest of the actions (register, login) won't work either without JavaScript, the redirections are done there as well. OK, then I'll just close this issue, I think it will be wiser to assume this :) |
@jaimeiniesta thanks for the detailed log 👍 Although I look at addict as an API driven user management library, I think it makes sense for whoever is using the action for |
@trenpixster is this likely to be looked at any time soon? |
@johnhamelink yep, will be hopefully tackling this in the next week along with #85 and a few others. |
Great, unfortunately I won't be able to try it this time around - I ended up using OpenMaize in the meantime. |
Hello! Thanks for creating Addict, it's great :)
I'm following the example app, but when it comes to the log out link, it's done with JavaScript (it sends the request and then redirects with JS). I want to do it directly, so that the response from the server is the redirect.
I started with the link on the layout:
This works, but then all we see is an empty "{}" response on the browser. So, I use the post actions to put a flash and redirect, like this:
And this almost works, but I get this error and a "You are being redirected" message is shown in the browser.
How can this be done?
The text was updated successfully, but these errors were encountered: