Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Open in new tab" on .crm-summary-link icons should open contact page #22303

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

braders
Copy link
Contributor

@braders braders commented Dec 22, 2021

Overview

[A brief description of the pull request. Keep technical jargon to a minimum. Hyperlink relevant discussions.
](https://lab.civicrm.org/dev/core/-/issues/2926

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.

Before

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. Right-clicking on the contact-type icon and either copying the link or opening in a new tab resulted in the popup (tooltip) contents loading as a standalone page.

After

Right-clicking on the contact-type icon and either copying the link or opening in a new tab results in the contact CRM page opening, instead of the tooltip contents. There is no change to normal usage.

Comments

Backwards compatiability is retained for third parties using the crm-tooltip class without the new data attribute.

@civibot
Copy link

civibot bot commented Dec 22, 2021

(Standard links)

@civibot civibot bot added the master label Dec 22, 2021
@braders braders force-pushed the core-2926-crm-summary-links branch from ad79908 to 14b5522 Compare December 22, 2021 16:18
@demeritcowboy
Copy link
Contributor

jenkins retest this please - weird fail

…, 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.
@braders braders force-pushed the core-2926-crm-summary-links branch from 14b5522 to 2ba5b7f Compare December 23, 2021 10:58
@demeritcowboy demeritcowboy added the merge ready PR will be merged after a few days if there are no objections label Dec 27, 2021
@demeritcowboy demeritcowboy merged commit 06cf762 into civicrm:master Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants