Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff.txt | 1.19 KB | deepakkumar14 |
#7 | external-redirect-3109793-7.patch | 5.01 KB | deepakkumar14 |
#5 | Screenshot from 2020-08-19 12-30-52.png | 3.83 KB | lisotton |
#4 | interdiff_3-4.txt | 693 bytes | deepakkumar14 |
#4 | external-redirect-3109793-4.patch | 5.03 KB | deepakkumar14 |
Comments
Comment #2
deepakkumar14 CreditAttribution: deepakkumar14 as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedI have created a patch for redirect user to external URL after logout.
Comment #3
lisotton CreditAttribution: lisotton at CI&T commentedHi @deepakkumar14,
I have changed a bit your patch to fix some Code Standards, can you please review?
Comment #4
deepakkumar14 CreditAttribution: deepakkumar14 as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd 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 CreditAttribution: lisotton at CI&T 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 CreditAttribution: deepakkumar14 as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedI have added new patch for this.
Comment #9
Prashant.cFixed. Thanks to the contributors.