Problem/Motivation

It's possible I am missing a great design decision here -- wouldn't be the first time -- but I do not understand why CONFIRMATION_URL and CONFIRMATION_URL_MESSAGE use $this->setTrustedRedirectUrl($form_state, $redirect_url); while CONFIRMATION_PAGE uses $form_state->setRedirectUrl. Indeed upgrading from WF5 to WF6 gives us an error requiring a TrustedRedirectResponse.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Charlie ChX Negyesi created an issue. See original summary.

ghost of drupal past’s picture

StatusFileSize
new826 bytes
jrockowitz’s picture

Status: Needs review » Postponed (maintainer needs more info)

It's possible I am missing a great design decision here -- wouldn't be the first time

I think the assumption is the CONFIRMATION_PAGE URL is always internal.

Can you please provide the steps required or an example webform that can be used to reproduce the error?

ghost of drupal past’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new418 bytes

Sorry. Internal can mean absolute if the language negotiation is per domain.

jrockowitz’s picture

Status: Needs review » Fixed

@Charlie ChX Negyesi That makes sense.

jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

jrockowitz’s picture

Status: Closed (fixed) » Needs work

Arg!!!! This change just major regressions in one of my applications because I am altering the using redirect URL $form_state-getRedirectUrl() and now the trusted redirect is using the $form_state->getResponse(). I am inclined to consider reverting this change.

ghost of drupal past’s picture

I did (a lot) more digging and the issue we are hitting is #2643466: "Redirects to external URLs are not allowed by default" for domain-based URL language detections.

We are good to revert here.

I just went with the easy thing, you know? if two things are doing what works why not third? but if it breaks stuff, we can fix the underlying issue.

Thanks for all your hard work on this module.

jrockowitz’s picture

Version: 6.x-dev » 8.x-5.x-dev
Status: Needs work » Needs review
StatusFileSize
new657 bytes

Thanks for doing the research into the source of the issue.

ghost of drupal past’s picture

Status: Needs review » Reviewed & tested by the community

Oh I thought you'll just do a git revert. But I can RTBC this for sure :)

  • jrockowitz authored feb1e85 on 8.x-5.x
    Issue #3217807 by Charlie ChX Negyesi, jrockowitz: CONFIRMATION_PAGE...

  • jrockowitz authored feb1e85 on 6.x
    Issue #3217807 by Charlie ChX Negyesi, jrockowitz: CONFIRMATION_PAGE...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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