fix redirect from frontend logout