How can I change form action link?
In the form submit handler, you can modify the $form['action'] value.


// Get the routename
$routename = 'My-Route';
  $url = \Drupal\Core\Url::fromRoute($routename);
  // make the redirection
  $form['#action'] = $url->toString();