I want to redirect users according to their group membership. Therefore I added the code found here: https://docs.plone.org/develop/plone/sessions/login.html#post-login-actions to my addon and modified it a bit.
logging I can see that it gets executed after every login but the redirect does not work. Even if I use
request.response.redirect(url, lock = True). How can I convince Plone to redirect to the URL I want after every login?