Closed (works as designed)
Project:
Field Actions
Version:
5.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2008 at 11:55 UTC
Updated:
8 May 2009 at 22:28 UTC
When i'm creating the new node, which triggers (save new node trigger) the action to send the mail to the field referenced user, the node link misses the node id, so recepient receives link like example.com/node/
I presume it's caused by the design of the mail generation, which is generated before the node gets actual ID... is there any workaround to solve this issue?
thanks in advance...
Comments
Comment #1
deekayen commentedThis is a known issue with implementations of the token module. Automatic Nodetitles has the same problem documented at #192220: some tokens don't work when initially creating a node. You are correct though - at the time the URL is generated for the email, the nid hasn't been generated yet.
The clean way to do these kinds of operations is usually through hook_nodeapi() (the referenced issue discusses node_save()), however I'm unaware of a post-save operation to hook into; the saving is the last thing to happen. I agree emailing a URL with the nid is a reasonable thing to expect, which is why this will remain open, though it might never get closed for 5.x or 6.x.
Comment #2
deekayen commentedI know I said I'd keep this open, but the other issue is marked by design and this is the issue same problem.