Updated: Comment #N
$form_state['redirect'] is used to redirect during form submission.
However, it only supports paths, and we have no way to use routes
There are 220 usages of
$form_state['redirect'], which is far too many to do at once.
This will add
$form_state['redirect_route'], make one real and one test conversion, and open a follow-up to do the rest.
Write the patch/tests
User interface changes
API addition, and deprecating the old path-based redirect.
PASSED: [[SimpleTest]]: [MySQL] 59,908 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 59,810 pass(es).
FAILED: [[SimpleTest]]: [MySQL] 59,258 pass(es), 2 fail(s), and 0 exception(s).