Using the patch from #645432: path_set_alias() called twice per imported node, thus breaking "Create path aliases" url importing

If pathauto is installed and emabled, an automatically generated path is created rather than the imported path. The easy solution is disabling pathauto for the import (that's what I did), the more complex solution would be to modify the previously mentioned patch to mimic the settings in the node object on a node/add/TYPE submission.

At the very least, the README.txt should mention having to disable pathauto.

Comments

lavamind’s picture

Looking at http://drupalcontrib.org/api/function/pathauto_nodeapi/6 it seems we would simply need to check if pathauto is enabled, and if so, set $node->pathauto_perform_alias to 0. That should be sufficient to prevent pathauto from doing its magic.

lavamind’s picture

Assigned: Unassigned » lavamind
Status: Active » Fixed

Fixed in latest 6.x-2.x-dev.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.