Fix LocationError when trying to access a web site with absolute url