Closed (fixed)
Project:
Redirect after logout
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2022 at 22:49 UTC
Updated:
31 Aug 2022 at 07:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nevergoneComment #3
nevergoneComment #5
mehul.gadaTo fix the issue, I have converted the line breaks in the logout message to the
<br>tag and allowed the<br>tags in the XSS filter to be retained, so that line breaks get displayed in the logout message.Comment #6
nevergone@mehul.gada
Ok, thanks, but please add test.
Extend Drupal\Tests\redirect_after_logout\Functional\TestBase class and use setRedirectConfig() method.
Example: Drupal\Tests\redirect_after_logout\Functional\SettingsTest class.
Test running: https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/running-...
Comment #7
mehul.gadaHi @nevergone,
I have added test cases to check the message with Line breaks. Please find attached the updated patch containing test cases.
Comment #8
mehul.gadaUpdated the patch for the PHPUnit test. The Automated testing seems to be failing in general for the given version (8.x-1.x-dev
) of the module (see https://www.drupal.org/pift-ci-job/2446668). One reason seems to be the masquerade module having deprecated code (there is an issue in the queue for the same - https://www.drupal.org/project/masquerade/issues/3288461 but still in review state). I have applied the patch in my local environment and post that the test was passed without any error.
Comment #9
nevergoneSimplifying the test.
Related issue: #3303794: Support website with subdirectory
Comment #10
nevergoneComment #12
nevergoneThanks, committed, pushed!
Comment #13
nevergone