When updating a node with no previous url alias set (no matter whatever the reason for this could be, e.g.: bulk update failed) and leaving URL path settings field blank so pathauto takes care, no alias is assigned despite getting the message "Created new alias go/russia for node/3082".

I´ve detected so far that pathauto.module inserts a new alias entry {url_alias} table for the node by means of hook_nodeapi 'update' call, but afterwards path.module deletes it since found $node->path is empty.

Attached you will find a patch to overcome this issue.

CommentFileSizeAuthor
pathauto_node.inc_.1.17.2.8.patch637 bytespatricio.keilty

Comments

greggles’s picture

Status: Needs review » Fixed

Seems reasonable enough. I committed this to the 4.7 branch. The 5.x branch doesn't seem to be affected by the issue.

Thanks for your assistance!

Anonymous’s picture

Status: Fixed » Closed (fixed)