This question already has an answer here:
My question seems to be obvious but I really don't find the solution. Well, I want to redirect to my view just after connexion. I try to use $form_state->setRedirect,but It's seems it needs the route name. I don't find the route name of my view! How to get a route name from a path? Or to redirect using the path?