"Open in new tab" on .crm-summary-link icons should open contact page, not summary...
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 22 Dec 2021 15:29:21 +0000 (15:29 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Thu, 23 Dec 2021 10:57:55 +0000 (10:57 +0000)
commit2ba5b7f7f5505c956487f1c116b22119aab6b754
treea7ea52b3d8cdf20f9ec3e01989f4875e9dba1c03
parent7c5fff64808530d814a55cff32996ff9aeeddaed
"Open in new tab" on .crm-summary-link icons should open contact page, not summary content.

Whilst the contact image tooltip is set to preventDefault, it is still possible to copy the URL or open in new tab.
This change ensures that the correct URL is set in these situations.
Backwards compatiability is retained for third parties using the crm-tooltip class without the new data attribute.
CRM/Contact/BAO/Contact/Utils.php
CRM/Contact/Selector.php
js/Common.js
tests/phpunit/CRM/Activity/Form/SearchTest.php
tests/phpunit/CRM/Financial/Page/AjaxTest.php
tests/phpunit/CRM/Member/Selector/SearchTest.php
tests/phpunit/CRM/Pledge/Form/SearchTest.php