Really handy module - thanks for building it.

In js/modal_forms_contact.js, the selector used for converting the links is a[href*='/contact']

On my site I have the contact form in a block added to a page with the path contact-us.

This gets picked up by the jQuery selector, although I only want it to fire when the link is to the actual contact form itself, so I've changed the selector to use a[href='/contact']

I'm wondering if it might make more sense to use a[href$='/contact'] to cover cases where the drupal install isn't in the domain's root directory, e.g.

#1 modal_forms_contact_selector.patch536 bytesmalcomio


malcomio’s picture

new536 bytes
frjo’s picture

Status:Needs review» Closed (won't fix)

This is to handle installations of drupal in a subfolder.

If there is a lot of demand for this I will reconsider.