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.
Redirecting when called from Drush breaks Drush requests. Such redirects can occur when the site_frontpage variable is set to a space.
The patch that was applied to Global Redirect in #594326: Breaks Drush is a good starting place.
Comment | File | Size | Author |
---|---|---|---|
#1 | 982708-1-spaces-drush-fix.patch | 1.01 KB | nedjo |
Comments
Comment #1
nedjoMoved this bug from #936234: call to router during menu access check causes infinite loop.
Attached patch is based on #594326: Breaks Drush by smk-ka and Dave Reid, see http://drupal.org/cvs?commit=336592.
Comment #2
hefox CreditAttribution: hefox commentedWorks as expected and looks good
Comment #3
nedjoThanks for reviewing. I guess though this should be for D7 first, using drupal_is_cli().
Comment #4
hefox CreditAttribution: hefox commentedBugs can go into 6.x and up-ported to 7.x to my knowledge.