the cookie/url autodetection was returning the wrong URI