Created
May 22, 2014 20:16
-
-
Save stevewithington/15a2c0d6d4ac9d8f31b8 to your computer and use it in GitHub Desktop.
Mura CMS : Redirect user after logout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public any function standardPostLogoutHandler($, event) { | |
// you could redirect the user to any url you want here | |
location(url=arguments.$.createHREF(filename='about'), addtoken=false); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@stevewithington Why isn't this
onAfterLogout
? Just curious is all. Seems like an odd naming convention and straying from consistency from the rest of the event hooks. Is there a nice documented list of the event hooks contained in Mura? Seems like I'm always stumbling on new ones while browsing.