Fix login redirects for communities
Merge pull request #544 from bhariharan/unstable

Fix login redirects for communities