Add prepare redirect check.