fixes redirect url