TiTravel redirect header detect bugfix