correctly get the url