added config var to control where to redirect the user