fixed before filter under dev redirect method