Only login and logout redirect work