try building absolute url from location, #38