Fixes #54, repair redirect after user invitation