Fix redirect after social auth login (fixes #457)

Signed-off-by: Michal Čihař <michal@cihar.com>