Reload page after an Ajax form submit

Last updated on 06/06/2017

In the form submit:

  $response = new AjaxResponse();
  $currentURL = Url::fromRoute('<current>');
  $response->addCommand(new RedirectCommand($currentURL->toString()));
  return $response;