Prepare absolute url to do nicer redirects