Skip to content
Snippets Groups Projects

BigPipe cannot handle (GET) form redirects (EnforcedResponseException)

Closed Scott Euser requested to merge issue/drupal-3304746:3304746-big-pipe-cannot into 11.x
1 unresolved thread

Closes #3304746

Merge request reports

Merge request pipeline passed for 31211ba6

Code Quality is loading
Test summary results are being parsed

Closed by Andrey PostnikovAndrey Postnikov 8 months ago (Oct 8, 2024 10:31am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
553 556 $cumulative_assets->setAlreadyLoadedLibraries(explode(',', $ajax_response->getAttachments()['drupalSettings']['ajaxPageState']['libraries']));
554 557 }
555 558 }
559 // Handle enforced redirect responses.
560 // A typical use case where this might happen are forms using GET as
561 // #method that are build inside a lazy builder.
562 catch (EnforcedResponseException $e) {
563 $response = $e->getResponse();
564 if (!$response instanceof RedirectResponse) {
565 throw $e;
566 }
567
568 $ajax_response = new AjaxResponse();
569 $ajax_response->addCommand(new RedirectCommand($response->getTargetUrl()));
  • Scott Euser added 1 commit

    added 1 commit

    • 926a25fa - Check for secure redirect response

    Compare with previous version

  • Scott Euser added 2 commits

    added 2 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading