Fix redirect on CLI or admin menu cache