I would like our content to get a new alias after it is imported. Unfortunately, unless a path is specified in the mapping, the path comes in empty and auto alias is not checked.

I found that this does seem to make it work..., but is it the right way? why isn't there a destination field like path:autoalias

  public function prepare($node, stdClass $row) {
    $node->path['pathauto'] = TRUE;
  }

Comments

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

There is a destination field to control this, provided by the Migrate Extras module (the Migrate module itself does not include support for contributed modules in general). However, the purpose of that destination is to disable pathauto - pathauto generation should be working by default. There must be something else going on in your migration that's preventing pathauto from working.

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.