redirect to domain if included in login url

fixes http://manage.dimagi.com/default.asp?51348