Convert href to url