A link without http:// or https:// will always be considered page relative by your browser. If this is from an input form then you would have to add the http:// if it was missing.
If you post your file or the code you use to generate the link then I could help you with a quick solution in php.