Drupal - Disable pathauto for nodes created with migrate module
You basically need to make sure the $node
object is passed in with pathauto
set to false when it is saved.
In your migration class:
function prepare(&$row) {
$row->path['pathauto'] = 0;
}
$this->addFieldMapping('pathauto')->defaultValue(0);
Works for me. Pathauto: Perform aliasing (set to 0 to prevent alias generation during migration See 'drush ma' + name of your class for full description