Fix production redirecturl bug