Commit feb1e85d authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by jrockowitz
Browse files

Issue #3217807 by Charlie ChX Negyesi, jrockowitz: CONFIRMATION_PAGE should...

Issue #3217807 by Charlie ChX Negyesi, jrockowitz: CONFIRMATION_PAGE should use setTrustedRedirectUrl
parent 1f2efe29
Loading
Loading
Loading
Loading
+1 −1
Changes for src/WebformSubmissionForm.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2408,7 +2408,7 @@ class WebformSubmissionForm extends ContentEntityForm {
    switch ($confirmation_type) {
      case WebformInterface::CONFIRMATION_PAGE:
        $redirect_url = $this->requestHandler->getUrl($webform, $this->sourceEntity, 'webform.confirmation', $route_options);
        $this->setTrustedRedirectUrl($form_state, $redirect_url);
        $form_state->setRedirectUrl($redirect_url);
        return;

      case WebformInterface::CONFIRMATION_URL: