I'ts becuase you have forgot to type http:// in yor url so your browser thinks it is a relative url.
You can try to fix it with exturl, but I have never used it and it's not documented so I have no idea if it does what I think it does.. http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/urls/exturl