Problem/Motivation
#2189661: Replace $form_state['redirect_route'] with setRedirect() removes direct setting of redirects that use routes. However we're still left with path based redirects.
Internally, FormState tracks both 'redirect' and 'redirect_route'. The latter is used for the modern approaches, the former for legacy.
Proposed resolution
The legacy support is completely removed. Internally all redirects are tracked by 'redirect', which is a \Drupal\Core\Url object.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | redirect-2315807-8.patch | 39.88 KB | tim.plunkett |
| #5 | redirect-2315807-5.patch | 145.12 KB | tim.plunkett |
| #5 | interdiff.txt | 767 bytes | tim.plunkett |
Comments
Comment #1
tim.plunkettIf this passes before #2189661: Replace $form_state['redirect_route'] with setRedirect() goes in, I might merge it back in.
Comment #3
tim.plunkettComment #5
tim.plunkettFixed the batch API bit I broke.
Comment #6
jibranAfter #2189661: Replace $form_state['redirect_route'] with setRedirect()
Comment #7
jibranAfter #2189661: Replace $form_state['redirect_route'] with setRedirect()
Comment #8
tim.plunkettComment #9
jibranAwesome work. I have already updated https://www.drupal.org/node/2174429 change notice but we need a sperate change notice for this anyway.
Comment #10
tim.plunkettAdded https://www.drupal.org/node/2316687
Comment #11
jibranPerfect.
Comment #12
tim.plunkettComment #13
alexpottCommitted 18ddb00 and pushed to 8.0.x. Thanks!
Looks good. I've had a quick look for change records that need updating and surprising I could not find any.
Minor improvement on commit.
Comment #16
hass commentedI thought change logs are only for D7 to D8 upgrades. The documentation https://www.drupal.org/node/2316687 is missing this migration details.
Comment #17
tim.plunkettChange records are not just D7-D8. See https://www.drupal.org/node/2310411 for more details about form object changes. If that's not enough, please open a new issue.