The regex in modal_forms_login.js matches any URL that includes user/login.

If modal login is enabled, this means that any login URLs on other domains will also be rewritten to the modal version, which results in an AJAX error if modal login isn't enabled on that site.

Probably causes other issues if the other site isn't a Drupal site, as well...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damianrobinson’s picture

See attached patch which checks the user/login path is on the same domain as the host site.

malcomio’s picture