The code for form validation in ajax_links_api.js changes the actions for all forms not just the one with a given action. Attached is a patch which loops through forms and changes them more specifically.

Support from Acquia helps fund testing for Drupal Acquia logo