Only redirect when redirect url is an internal page.

@cpennington @brianhw Review, please?