Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In short, what we're looking into is this:
How do we go about creating a link to the edit page of the currently viewed node? Normal logic would suggest something like "node/[nid]/edit", but this doesn't seem to work. We'ere using the token text filter to replace text with tokens.
Any help appreciated.
Best,
Thomas
Comments
Comment #1
brichmond CreditAttribution: brichmond commentedHave you found a solution to this yet?
I have the token module and I am experiencing a similar situation. I am creating a link to add content, and based on the nid in the url path it'll dynamically fill in an entity reference. I have everything except getting the nid in the path.
I.E:
/node/add/application?field_job=[nid]
however I get the literal output [nid] instead of something like 499.
Hope someone take a look at this.