Proposal: "Open in new tab" on .crm-summary-link icons should open contact page, not summary content.
When searching for contacts (as well as in some other contexts) each contact has a contact-type icon which shows some extra details on hover:
Often when searching it is ideal to open each result in a new-tab, whilst keeping the original search page in the original tab. However, when right-clicking on the contact-icon and doing "open in new tab" you get a page something like this (i.e. the contents of the summary popup):
I think that this should actually open the contact record instead. (note that click is preventDefault'd, but this doesn't stop the ability to open in a new tab).
Currently the JS uses the
href attribute to populate the summary popup. I suggest that a data attribute is used instead, allowing the
href to point to the contact record. If we do this, I think there may be an argument for removing the preventDefault on click.
crm-summary-link class may be used by third-party extensions. We can retain backwards compatiability for these extensions by keeping the current logic in cases where the new data attribute is not set.