Closed (fixed)
Project:
Migrate Extras
Version:
6.x-2.x-dev
Component:
Migrate Extras Features
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2010 at 17:50 UTC
Updated:
18 Oct 2010 at 19:20 UTC
If you have Pathauto enabled and are migrating paths to new nodes, you will sometimes have duplicate path aliases per node - because Pathauto will try to generate one, and the one you are migrating will be created. The solution is to set a flag on the nodes in hook_migrate_prepare_node (or just disable pathauto during migration)
$node->pathauto_perform_alias = false;
Comments
Comment #1
eiland commentedsubscribe
Comment #2
mikeryanContrib module support should be implemented in the Migrate Extras module.
Comment #3
eiland commentedwith me the issue was caused from http://drupal.org/node/269877
Comment #4
mikeryanExposed pathauto_perform_alias as a destination field in Migrate 2, so it can be set to 0 to suppress alias creation during migration.