Canonical URL as a token?

Anonymous
Not applicable

Canonical URL as a token?

I realize this is a weirdly specific question, but:

I'm wondering if there's any equivalent of  $_SERVER['SERVER_NAME'] $_SERVER['REQUEST_URI']; that exists in token form--that is, is there a token that will spit out a string of a landing page? I'm interested in using something like this to determine canonical and og:url links, but would like to have this universally defined in a template rather than having to update a token every time a new page is created.
Tags (1)
1 REPLY 1
Andrew_Sielen1
Level 3

Re: Canonical URL as a token?

This would be a great feature to have. It seems like that data must live somewhere, but I haven't seen any evidence that it is part of a public API. 

It could be setup to fit into the current token system. Something like {{this.url}}