Change method to get url so that it does not parse a string.