Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jun 2010 at 21:08 UTC
Updated:
7 Feb 2026 at 18:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
agentrickardAnd a patch against 1.3.
Comment #2
dave reidSetting to 6.x-1.x so it can be run against tests.
Comment #3
gregglesMakes sense to me.
Comment #4
dave reidCommitted to all three branches:
http://drupal.org/cvs?commit=377178
http://drupal.org/cvs?commit=377180
http://drupal.org/cvs?commit=377182
Comment #6
dave reidSeems some abstractions removed this from 6.x-2.x and 7.x-1.x.
Comment #7
dave reidRe-applied to 6.x-2.x.
Comment #8
danielb commentedsubscribed, I see no $node->path in Drupal 7. Need it for the node_export module to work.
Comment #9
danielb commentedLooks like I found an explanation for why this is the case
http://drupal.org/node/332333#comment-2163634
Comment #10
extexan commentedOk, so... with no replies after the "found an explanation" of 22 Sep 2011, I'm not sure the status of this. Should I apply patches in the thread linked to in #9, or has that been added to core?
And, regardless of that, I'm still not getting the aliased path in my hook_node_insert function (D7 of course), so if it *has* been fixed in core, I guess *this* module still needs a fix, or I need to know how to do this.
I'm sending email notifications when certain nodes are created or (sometimes) updated. The emails include a link to the node and I naturally want that to be the aliased path instead of "node/{nid}". I'm doing this in hook_node_insert() and hook_node_update(). "update" is not a problem as the alias field is populated, but in hook_node_insert it is NULL.
I've tried setting the weight of my module to a higher value than pathauto, that didn't work. I tried reloading the node (via node_load) just before sending notifications. The only thing that did is make the "path" field disappear entirely from the node object.
Please advise.
Comment #13
mably commentedComment #15
mably commented