I was trying to create a url to the home page using a node id as a query parameter.
e.g. the output should be
<a href='<homepage>?param=[nid]>test url</a>

Here [nid] is a token.

this token replacement does not happen.

CommentFileSizeAuthor
#3 tokens_not_getting-2449369-3.patch855 bytesalansaviolobo
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alansaviolobo’s picture

Issue summary: View changes
subhojit777’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Fixed

Make sure you have placed the token [nid] before Global: Views url field, otherwise the token replacement will not work.

From replacement pattern help text:

Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.

alansaviolobo’s picture

Status: Fixed » Active
StatusFileSize
new855 bytes

My bad: I forgot to attach the patch.

mably made their first commit to this issue’s fork.

mably’s picture

Version: 7.x-1.x-dev » 2.0.x-dev

mably’s picture

Status: Active » Needs review

  • mably committed 0e6cc184 on 2.1.x
    Issue #2449369 by alansaviolobo, mably: tokens not getting replaced
    
mably’s picture

Status: Needs review » Fixed

  • mably committed 0e6cc184 on 3.x
    Issue #2449369 by alansaviolobo, mably: tokens not getting replaced
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.