Fix VIA-30: always choose the right redirect when logging in (when denied or when just logging in)