Fix for redirect after search