Scenario: we have an internal only url and a public url to our website. Editors login to the internal url, while the public views the site on the public url.

Some of our tokens (for example, an image field), have the absolute url of our internal only links visible. For example, our image fields appear externally (using the metatag module to show the og:image tag):
http://internal.example.com/sites/blah/field_image/example.jpg

I'm not sure if this is a token issue or something else. Should the field itself not be storing the paths as absolute? Should token be stripping it out? Should I write a hook to just replace the values?

Thanks for the help in advance!

Comments

ttkaminski’s picture

I'm having a very similar issue. In my case, I have a mobile version of the site "m.site.com" and my desktop version at "www.site.com". I have comment email notification enabled (comment_notify module), and when someone writes a comment on m.site.com, all the tokens urls in the notification email contain m.site.com instead of the canonical domain, www.site.com. Any ideas?