Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Problem/Motivation
When sites are migrated, the file paths are not updated in the drushrc alias file.
Steps to reproduce
- Create a site, such as site1.example.org
- Migrate it to site2.example.org
Then grep for "file" in the `~/.drush/site2.example.org.alias.drushrc.php`. It will display the old URLs.
Verify does not fix this issue, unless we first manually edit the drushrc file.










Comments
Comment #2
kienan CreditAttribution: kienan commentedI was able to reproduce this in 7.x-3.190 both 7.x-3.191 ("testing" - 2020.12.04)
Comment #3
bgm CreditAttribution: bgm commentedI only had a quick look, but found that the drush alias file is rewritten here:
* file: platform/migrate.provision.inc
* function: drush_provision_drupal_post_provision_migrate
I don't know whether "d()->write_alias();" gets called from there (if rename) or from import.
Comment #4
bgm CreditAttribution: bgm commentedComment #5
agaq CreditAttribution: agaq as a volunteer commentedI reproduced it in 7.x-3.190 (on Ubuntu 18.04, with debian package version 3.190)
I migrated a site 'site.example.com' to 'migrated-site.example.com'.
The migrated site did not display inline images.
`~/.drush/migrated-site.example.org.alias.drushrc.php` still showed the old file paths:
I updated the paths with new URL:
Then re-verified the migrated site.
The inline images reappeared.
Comment #6
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions commentedPlease try with the new 3.19.2 release as that might fix it.