renamed getUrl to getRedirectUrl