Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2013 at 18:27 UTC
Updated:
13 Aug 2014 at 11:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
helmo commentedThis could be seen as a positive feature. Even after migrating a site old links remain functional.
The hosting_migrate_post_hosting_migrate_task() function saves a new new context which in turn saves a new url_alias.
We could make it check and clean up the old one.
It becomes a problem ones you want to re-use the old site name.
E.g migrate example.com to old.example.com, then new.example.com to example.com.
The second migrate task gives an error on "WD path: The alias 'hosting/c/example.com' for path 'node/42' (language '') was not created, because the path 'node/24' already has the same alias."
So maybe we should check and overwrite...
Comment #2
helmo commentedI guess it would be fixed by this oneliner... completely untested though.
Comment #3
anarcat commentedComment #4
helmo commentedI've tested this manually today with a
drush php-eval.Seems to work ok.
Comment #5
helmo commentedPatch for 7.x-3.x
Comment #6
helmo commentedAnd some cleanup with comments.
New D6 and D7 patch.
Comment #9
helmo commentedComment #11
daften commentedThanks again, sorry for the non-communication, it was buried deep in my inbox and resurfaced now.