Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up from #1987806: Convert search_view() to a new style controller.
Problem/Motivation
Currently forms using 'redirect' with system URI to redirect to certain page after processing/complete form submission.
e.g. $form_state['redirect'] = $form_state['action'] . '/' . $keys; in SearchForm::submit()
Proposed resolution
Add an option to use routing system to do this redirect. So instead of url, it might be route_name?
Remaining tasks
Discuss
Issue patch
Test
User interface changes
NO
API changes
May be - Depending on the implementation
Related Issues
https://drupal.org/node/1987806#comment-7936965
Comments
Comment #1
vijaycs85Duplicate of #2105661: Add support for $form_state['redirect_route']