FIX: redirect client to the original url after logging in for private instances
Merge pull request #3045 from techAPJ/patch-2

FIX: redirect client to the original url after logging in for private in...