Closed (fixed)
Project:
Redirect after logout
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2020 at 13:15 UTC
Updated:
28 Sep 2020 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
deepakkumar14 commentedI have created a patch for redirect user to external URL after logout.
Comment #3
lisotton commentedHi @deepakkumar14,
I have changed a bit your patch to fix some Code Standards, can you please review?
Comment #4
deepakkumar14 commentedHi, @lisotton Thank you for checking the coding standard and review my patch. I have tested your patch but i found one issue and i have changed it in .module file
$this->messenger->addMessage(Xss::filter($token_service->replace($logout_message)));
to
\Drupal::messenger()->addMessage(Xss::filter($token_service->replace($logout_message)));
And its working fine for me. Please review.
Comment #5
lisotton commentedI confirm that it is working, I can see the message after logout:

Comment #6
prashant.cThe patch #4 has some issues, the moment I am applying this my site throws
The website encountered an unexpected error. Please try again later..Drupal Version - 8.9.x
Module Version - 8.x-1.x
Please test with these versions.
Comment #7
deepakkumar14 commentedI have added new patch for this.
Comment #9
prashant.cFixed. Thanks to the contributors.