SuiteCRM - redirect on logout

Hi!

doing my first steps with SuiteCRM and loving it. Is there any way to redirect SuiteCRM on logout for an external https website?

Any advice is welcome! :slight_smile:

Hi,

Never tested but will do what you will

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Logic_Hooks/User_Hooks/after_logout/

1 Like

Thank you Item. Please, where to I insert the https://targetwebsite.com on the code:

<?php if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class logic_hooks_class { function after_logout_method($bean, $event, $arguments) { //logic } } ?>

Any help is appreciated! :slight_smile:

Hi,
so :

<?php if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class logic_hooks_class { function after_logout_method($bean, $event, $arguments) { header('Location: http://www.example.com/'); exit; } } ?>
2 Likes

Item, thank you. It works like a charm.