Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Automatic redirects not working
Status | Resolved |
Add-on / Version | Custom System Messages |
Severity | Trivial |
EE Version | 16 |
Nick
May 29, 2012When a user logs in / logs out via Safecracker, automatic redirects don’t work. They work fine without Custom System Messages installed.
Best Regards,
Nick
BoldMinded (Brian)
May 29, 2012
What do you mean login/out with Safecracker? As far as I know Safecracker shouldn’t have anything to do with loggin in or out, it only handles entries. Can you share your template code? Thanks.
BoldMinded (Brian)
May 29, 2012
Also, what version of CSM are you using?
Nick
May 31, 2012
Thanks for your reply. Sorry, I was a little vague. I’m using Zoo Visitor (which uses Safecracker forms) to allow users to create accounts, login, logout, etc. via the front end. Everything works as expected except the automatic redirects e.g. when a user logs out they are taken to the home page. I’m using Custom System Messages 2.4 (EE 2.4.0). My custom message page (If that’s what you’re after) is:
{!—To deliver a custom message for a specific action—}
<div class=“block-full header-background”>
<h3>System Message</h3>
</div>
<div class=“block-full main-content”>
{if csm:action == 12 AND csm:error == false}
<h6>success {content}</h6>
{if:elseif csm:action == 12 AND csm:error == true}
Fail :(
{if:else}
<h3>{heading}</h3>
<h6>{content}</h6>
{link}
{/if}
</div>
BoldMinded (Brian)
May 31, 2012
Nick, try using the EE logout link instead. {path=“logout”}. It looks like the ZV logout function bypasses the EE internals that CSM is relying on to work.
Nick
Jun 06, 2012
Hi, the EE logout link {path=“logout”} is in fact the one I have been using.
Best Regards,
Nick
P.S. I have clicked the “Notify me of follow-up responses.” box, but I’m not getting any notifications.
Nick
Jun 14, 2012
Hi,
Any more thoughts on this? The issue has been raised by my users and I’m keen to get it fixed.
To clarify, my login / logout links are:
Login
Logout
All automatic redirects work when Custom System Messages is taken out of the equation, so I’m not convinced Zoo Visitor is causing an issue.
Thanks in advance,
Nick
Nick
Jun 14, 2012
Correction - login / logout links are:
i.e. standard EE.
Nick
Jun 14, 2012
Incidentally, redirect works if I use the following option in Custom System Messages settings:
“Bypass the message template entirely on successful actions?”
Perhaps I’m missing something in my message template?
BoldMinded (Brian)
Jun 14, 2012
Hi Nick. I’m going to have to setup a Zoo Visitor instance to be able to debug this. It would make sense though that the logout works if you bypass the success message b/c a logout will never (or should never) have an error response.
BoldMinded (Brian)
Jul 28, 2012
Nick, are you still having trouble with this?