How to redirect to a edit node page with RedirectResponse?
Note that \Drupal::url() is deprecated. You should use the static methods of the Url class to create URLs from routes.

To find the route names, use the Drupal console drupal router:debug. From that I found:

 entity.node.edit_form  /node/{node}/edit


I think what you need is Url::fromRoute('entity.node.edit_form', ['node' =&gt; 1]) where 1 is the node ID to be edited.