Reload a Drupal page after an Ajax form submit

In form submit:

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

 

Your skills are in big demand and you'll be paid the rate you set

Software Engineering, Business Operations, Creative & Design, Engineering, Executive, Finance, Legal, Marketing, People, Product, Publications, Revenue, Account Management, Sales, Strategy, Talent Operations

Apply

********************************** ************************* ************************ **************** ****************** *********** ************** ************* ************ *************