Fixed bug #9629. Added possibility to redirect user after first login from unkown address.