-
Notifications
You must be signed in to change notification settings - Fork 626
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
LogoutRedirect #1003
Comments
Would be really nice to be able to set the redirectUrl in the template |
Any chance of making it more dynamic, so you could for example redirect the user to the same page but in a logged out state? |
The However I’ve just updated it to accept a PHP callable (26d9658 and 16e9d2a), so if you really wanted to do that, you could: 'postLogoutRedirect' => function($siteHandle) {
return Craft::$app->request->getParam('redirect', 'default/path');
}, |
This is only available in Craft 3, right? |
@madebyspark correct, wouldn't be easy to replicate the feature in Craft 2 unfortunately. |
No worries - just checking as it comes up often. Thx @brandonkelly |
As the docs say, ‘The URL Craft uses to log users out, based on the logoutPath config setting. Note that Craft will automatically redirect users to your homepage after going here; there’s no such thing as a “logout page”.’
How about a logoutRedirect for general config settings to specify where users get redirected to after logging out.
The text was updated successfully, but these errors were encountered: