Forum
Link not working
I have a template that allows a client to enter a url thats forms the link of a button.
The issue is that when the url contains an & anything beyond this is ignored, so although the link still takes you a the website, it doesn't take you to the correct page.
Is there anything that can be done about this?
Thanks in advance for your help.
What does the link look like if you view source on your HTML?
The page source has the ampersand written in html code which explains the problem - is there a way to prevent this?
Can you show me the exact output?
Here's the output - the link calls a page into an iframe:
That looks correct to me.
The code I posted has reverted to & - but on the page source it shows &
Ok, great.
The original problem still exists - any ideas?
Oh, sorry, I thought you were saying it was working.
Can you show me the tag from your template for this field?
Here's the tag:
Ok. So it's correct that the ampersands should be written as
&
in the page source. The issue would arise if the ampersands were double encoded, but it doesn't sound like that's happening.