Only redirect when redirect url is an internal page.
Merge pull request #499 from edx/diana/login-redirect

Only redirect when redirect url is an internal page.