Given the token [node:source:url:path], the intention is to retrieve the aliased path of the translation source node.
What is actually happening is that the lookup is performed for the source node uri, but using the current language context.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | token-node_source_wrong_language-2476681-3.patch | 2.16 KB | ciss |
Comments
Comment #1
ciss commentedComment #3
ciss commentedI realized that there are two aspects of the previous patch that prevent it from ever getting committed:
The attached patch reverts the earlier change and instead introduces a new node token "source-with-context" that passes along the source node language.
So instead of using
[node:source:url:path]one would use[node:source-with-context:url:path].Comment #4
chris matthews commentedThe 4 year old patch in #3 to token.tokens.inc applied cleanly to the latest token 7.x-1.x-dev and if still applicable needs to be reviewed.