Using EE, current version
I’m using an embed to add a template that includes a button linked to an external site. The link’s URL is taken from a custom text field. Here’s the code I’m using (opening and closing characters intentionally removed):
a href=”{product-retailer-url}”>{site_url}images/assets/buynow.png</a
The embed is appearing correctly, but when I click on the button I get the following error: “The URI you submitted has disallowed characters.” Instead of processing the URL as an external link, it’s adding it to my site’s URL: http://mysite.com/index.php/{product-retailer-url}.
What I’ve checked:
- the custom field is plain text field
- I’ve turned the auto-link channel setting on and off. No difference.
- I’ve tried both with and without http://
- I’ve replaced the {product-retailer-url} tag with the actual URL and it works fine.
Am I missing something here?