Tristan redirect fix

I left this in application_controller, not sure if that is the best place.