Support from Acquia helps fund testing for Drupal Acquia logo

Comments

purushotam.rai created an issue. See original summary.

deepakkumar14’s picture

Status: Active » Needs review
FileSize
4.15 KB

I have created a patch for redirect user to external URL after logout.

lisotton’s picture

Hi @deepakkumar14,
I have changed a bit your patch to fix some Code Standards, can you please review?

deepakkumar14’s picture

Hi, @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.

lisotton’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
3.83 KB

I confirm that it is working, I can see the message after logout:
test message

Prashant.c’s picture

Status: Reviewed & tested by the community » Needs work

The 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.

deepakkumar14’s picture

Status: Needs work » Needs review
FileSize
5.01 KB
1.19 KB

I have added new patch for this.

Prashant.c’s picture

Status: Needs review » Fixed

Fixed. Thanks to the contributors.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.