refactor getRedirectUri to base Controller