When each locale uses a separate domain, redirecting fails with this error:

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

Comments

prudloff created an issue. See original summary.

prudloff’s picture

StatusFileSize
new1.27 KB

The attached patch fixes this issue.

mr.baileys’s picture

Confirmed that redirects to domains are failing. Attached is a test demonstrating the issue, and a combined patch with both the test and fix.

The last submitted patch, 3: 3119466-3-disable-language-external-redirect-test-only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Status: Needs review » Needs work

The last submitted patch, 3: 3119466-3-disable-language-external-redirect.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

mr.baileys’s picture

Status: Needs work » Needs review
StatusFileSize
new3.93 KB
new5.21 KB

The last submitted patch, 6: 3119466-6-disable-language-external-redirect-test-only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • mr.baileys authored b16e2ad on 8.x-1.x
    Issue #3119466 by mr.baileys, prudloff: Can't redirect to a different...
thomas cys’s picture

Status: Needs review » Fixed

Thanks for the patch.

Status: Fixed » Closed (fixed)

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