Skip to main content
November 6, 2014
Question

Canonical URL as a token?

  • November 6, 2014
  • 1 reply
  • 1197 views
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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 3
November 6, 2014
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}}