Fix login redirects for communities