preserve extension on redirect