<![CDATA[ Trouble adding website link in jot - MODX Community Forums]]> https://forums.modx.com/thread/?thread=70178 <![CDATA[Trouble adding website link in jot]]> https://forums.modx.com/thread/70178/trouble-adding-website-link-in-jot#dis-post-393048
I have a custom url field in my guestbook form. It is saving the url that is entered and in my code I check if the url field is empty and if not I add <a> tags around the name of the person who posted the comment.

My code:
[+phx:if=`[+comment.custom.web+]`:ne=``:then=`<a href="[+comment.custom.web+]" target="_blank">
		      [+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+]
                  </a>`:else=`
                      [+comment.createdby:isnt=`0`:then=`<b>`+][+comment.createdby:userinfo=`username`:ifempty=`[+comment.custom.name:ifempty=`[+jot.guestname+]`:esc+]`+][+comment.createdby:isnt=`0`:then=`</b>`+]
                  `+]	


If I enter the url as "http://www.google.com" it works fine and dandy. But if I enter the url as "www.google.com" I then get "http://myurl.com/www.google.com" (aka my baseurl and then the url they entered).

If there some setting I don't have right? Or some extra code I should be adding?
Thanks for the help.]]>
steffitoast Sep 12, 2011, 04:07 AM https://forums.modx.com/thread/70178/trouble-adding-website-link-in-jot#dis-post-393048