fixed wrong http/https SOGo redirects after login

Same as above.