Redirects to external URLs are not allowed by default

Created on 20 May 2022, over 2 years ago
Updated 12 July 2023, over 1 year ago

On a test involving form submission I receive:

1) Drupal\Tests\course\Functional\CourseOutlineUiTest::testObjectDeletion
Exception: User error: Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.
Drupal\Core\EventSubscriber\RedirectResponseSubscriber->checkRedirectUrl()() (Line: 84)

But I can't reproduce this locally. The test runs fine.

# ../vendor/bin/phpunit ../web/modules/custom/course/tests/src/Functional/CourseOutlineUiTest.php     
PHPUnit 9.5.20 #StandWithUkraine

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing Drupal\Tests\course\Functional\CourseOutlineUiTest
....                                                                4 / 4 (100%)

Time: 01:49.559, Memory: 14.00 MB

OK (4 tests, 54 assertions)

https://www.drupal.org/pift-ci-job/2384851 β†’

πŸ› Bug report
Status

Active

Component

Unexplained Failures/Support

Created by

πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024