Webform Confirmation AjaxResponse I'm trying to update the URL on a successful webform submission, with an inline ajax confirmation. The form works and submits fine and I already have a custom Drupal ajax command to history.push setup, but cannot figure out how to hook into the confirmation flow.

I have tried: 


Adding a custom callback to $form['actions']['submit']['#submit'] and returning an ajax response from that callback
Adding a custom handler, but can't see where I could add the functionality necessary 


Thanks.
I ended up doing this by creating an event subscriber and listening for the webform ajax response as described on this issue page: https://www.drupal.org/project/webform/issues/2911409

The keylines (amended for brevity): 

// The event to listen for
KernelEvents::RESPONSE

// Check to see if it is a webform ajax request 
if(
    $event-&gt;getResponse() instanceof WebformSubmissionAjaxResponse and
    $event-&gt;getResponse()-&gt;getWebformSubmission()-&gt;isCompleted()
) 

// Add my custom Ajax command
$event-&gt;getResponse()-&gt;addCommand(new UrlHistoryCommand)