Pathauto's official documentation indicated that for importing nodes needing a custom alias to be included, the correct code to use is one that sets $node->path['pathauto'] = FALSE

We did this, and sure enough, custom URLs were processed correctly. The problem is afterwards, if you have a user editing a node, who manually checks the box to turn Pathauto back on.

  • Check the box to turn on Pathauto
  • Save
  • Delete the redirect, uncheck Pathauto again, re-enter the original custom URL (or any custom URL)
  • Save

In this instance, Pathauto no longer respects or uses the new custom URL. Are the import settings wrong if the only pathauto setting changed was via the code mentioned in the online documentation as the recommended approach? Is there a way to prevent this bug from occurring?

Any guidance would be appreciated!

Thank you :)

Marc

Comments

DC_Marc’s picture

Title:Notes imported with custom alias don't redirect the same way Pathauto itself would» Nodes imported with custom alias don't redirect the same way Pathauto itself would

Is this a duplicate of https://drupal.org/node/936222 ? I can't tell.

DC_Marc’s picture

Title:Nodes imported with custom alias don't redirect the same way Pathauto itself would» Imported nodes with custom alias don't redirect the same way as new nodes with custom alias
Category:support» bug
DC_Marc’s picture

Any thoughts on this issue? Is it a duplicate? I hope I'm not being a pain; this issue is just very vexing.