Give the gift of Drupal. All merchandise is 50% off through 2016.
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
- Delete the redirect, uncheck Pathauto again, re-enter the original custom URL (or any custom URL)
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 :)