I configured an action to send an email and would like to include the path alias of the appropriate node. I discovered [node:url] but this gives me the URL such as example.com/node/123. Instead I would like to include the path alias. Which variable is it?

Also, is there any overview which placeholders exist? The only information I found was at the bottom of the admin page which mentions [node:title], [user:name], and [comment:body]. I discovered [node:url] with try and error.

Comments

ksstover’s picture

Aliased paths and node id numbers will send users to the exact same location.

Here are some options for URL tokens:

  • URL - The URL of the node.
    [node:url]
  • Absolute URL - The absolute URL.
    [node:url:absolute]
  • Alias - The alias of the URL.
    [node:url:alias]
  • Internal path - The internal Drupal path of the URL.
    [node:url:path]
  • Relative URL - The relative URL.
    [node:url:relative]

Here is the full list as provided by the Token Module: http://drupal.org/node/390482