Programmatically change redirect after logout I'm actually looking for a solution in Drupal 8 to change the redirection destination after visiting /user/logout page. I want to redirect the user on /user/login instead of home page.

Try this but not working, I'm still redirect on home page :

/**
 * @file
 * Contains my_module.module.
 */

use Symfony\Component\HttpFoundation\RedirectResponse;

function my_module_user_logout($account) {
  // We want to redirect user on logout.
  $response = new RedirectResponse("user/login");
  $response-&gt;send();
  return;
}
hook_user_logout() doesn't expect a redirect response object and won't respond to it. 

One alternative here, if you don't need a programmatic forcing of redirection, is to use the destination query parameter. The path supplied in the parameter will be redirected to upon logout. For example: http://example.com/user/logout?destination=user/login will return a user to the login page following logout.