we should figure out how to encapsulate this into some sort of Redirect class.  I'll think about it and update this pull.