Closed (duplicate)
Project:
Token
Version:
5.x-1.10
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Apr 2008 at 14:28 UTC
Updated:
2 Aug 2008 at 03:46 UTC
Jump to comment: Most recent file
Had a requirement to pass the referenced node's raw path along to pathauto for generation of the final URL. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 246464_noderef_path_tokens.4.patch | 1.14 KB | dww |
| #2 | token_path-raw.patch | 772 bytes | robschmitt |
| token_path-raw.patch | 763 bytes | robschmitt |
Comments
Comment #1
gregglesSeems reasonable to me, though it should be just the path, not "-raw". -raw is reserved for places that contain user input that has not been sanitized. The url() function performs sanitizing to protect users.
Comment #2
robschmitt commentedYou're right, of course. I've changed 'path-raw' to path, and updated the patch (attached). Seems to work OK in my testing.
Comment #3
dwwThere are cases where you also need a token for the absolute path, e.g. in emails etc.
Comment #4
dwwLike so.
Comment #5
dwwUgh, I just found #222214: Provide tokens for referenced node (and user) url (absolute) and path alias (relative) even earlier, and with "alias" tokens for referenced users, too. *sigh*. So much for fending off duplicates as they come into your issue queue, huh? ;)