The token for a relative URL, such as [node:url:relative] does not work.

Comments

tchopshop’s picture

Title: current page tokens not working » some tokens not working
cirrus3d’s picture

Issue tags: +token replacement

Hi,

Sorry to reopen an old issue, but since I've solved this on my end, I thought it'd be nice to share the solution.
I had an issue using tokens like [node:url:path] etc. The reason I wanted to use this tokens is that I needed to have clean urls in my default OG menus.

The reason it was not working for me is that the Pathauto module had a larger weight (weight = 1) than the og_menu, og_menu_default_links (weight = 0) modules, so the Node URL path had not been created during the link creation process.
When I set these modules' weight from 0 to 2 the tokens were correctly parsed.

A guide to update the module weight is here.