I did setup this module and some how my URLs doesnt validate. I get an "URL fails validation." error message with a "page not found" loaded on my page.
To me, my URLs are just fine, properly marked up and websites are loaded when I manually browse over there. I have no idea why I would be getting this error messages. Is there a specific format this module might be looking for validation?
Im using the Link module to create some External Links on my D7 site and using Views to present them on my pages. Is there a known compatibly problem with this module and Links or Views module?
Please help me to troubleshoot the problem.
Thank you...
Comments
Comment #1
stongo commentedThe validation can fail a couple ways:
1. Links aren't coming from the same primary domain. There's a check on $_SERVER['HTTP_REFERER'] checking that the link to external?url=foobar.com was from the same domain (ie. you can't link to bar.com/external?url=whatever.com from foo.com)
b. There is also a cookie that stores any links that have passed verification. links in the cookie bypas the http_referer check.
2. link can fail a regex check: preg_match('/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}' . '((:[0-9]{1,5})?\/.*)?$/i', $url))