Hi Guys,
Whenever I add a link to my site without http:// it end up as a broken link.
The link end up rendering as mydomainname.com/www.link.com
So the link just appends to my domain and end up broken.
Its a big issue for me as when users register and enter their website they often leave out the Http://
Is this a common issue. Are there any easy fixes?
Hi,
2 solutions
1. Force you users to enter http. A simple javascript validation rule should do the trick
2. When showing the url detect if the values has http or not. A simple snippet can do the trick
I would choose the second is a lot more easier to do.
Can you post your template in here? I need to understand how you do it before I do anything else
Hey Cipa,
Thanks so much for the guidance,
Will try it tomorrow and let you know if it works.
-
☆ A M B ☆
- 3,141 Posts
Will people ever paste in a link with https?
May need to modify the snippet to check for either before prepending it to avoid accidently breaking it when they use ssl.
Hey Mark,
Good Idea, didn’t even cross my mind.
Will definitely try and code something in to prevent errors with Https URLs.
Stuart