Created
October 27, 2014 11:25
-
-
Save sanderpotjer/aa6648216e141afc2749 to your computer and use it in GitHub Desktop.
Template override for direct logout when using logout menu item in your menu. Place override in templates/nameoftemplate/html/com_users/login/default_logout.php
This file contains 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
<?php | |
defined('_JEXEC') or die; | |
$app = JFactory::getApplication(); | |
$return = $this->params->get('logout_redirect_url', $this->form->getValue('return')); | |
$url = JRoute::_('index.php?option=com_users&task=user.logout&' . JSession::getFormToken() . '=1&return=' . $return); | |
$app->redirect($url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment