Redirect after form submission I created a custom form in Drupal 8. I remember we can redirect to custom path  in Drupal 7 with $form_state['redirect'] = 'mycustompath'; in a submission handler.
How can I achieve the same in Drupal 8?
I know I should use submitForm().
public function submitForm (array &amp;$form, FormStateInterface $form_state) {
   // Redirect users.
}
In your "submitForm" method write below code

 $form_state-&gt;setRedirect('machine_name');
 return;


where machine_name is the machine name mentioned in the routing file.

I hope this helps .. :)