FIX Dont pop up basic auth dialog when trying to flush and isDev=1

, just redirect to Security/login like normal