switches logout hook to admin url from login url