PHP code example of superbig / craft3-logoutredirect

1. Go to this page and download the library: Download superbig/craft3-logoutredirect library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

superbig / craft3-logoutredirect example snippets



return [
    // Enable the redirect check
    'enabled' => true,
    
    // To redirect all users after logout - this will override the two other config options
    'redirectUrl' => '/goodbye',
    
    // To redirect CP users after logout
    'redirectCpUrl'   => '/cp-goodbye',
    
    // To redirect site users after logout
    'redirectSiteUrl' => '/goodbye',
];