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

SearchKit - Fix link target selection #20537

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jun 7, 2021

Overview

This fixes a recent SearchKit regression which broke the selector for choosing how a link would open (Normal/New Tab/Popup).

Before

Making a selection in this dropdown was ignored by the search display. Links would use default behavior regardless.

image

After

Fixed.

Technical Details

This also gets some templating logic out of the controller and into the template.
Also simplifies markup needed to open a link in a popup. Now both class="crm-popup" and target="crm-popup" both work. The target attribute works better for search kit and is more semantic anyway.

@civibot
Copy link

civibot bot commented Jun 7, 2021

(Standard links)

@civibot civibot bot added the master label Jun 7, 2021
@seamuslee001 seamuslee001 self-assigned this Jun 7, 2021
@eileenmcnaughton
Copy link
Contributor

I was able to replicate both the problem and the fix - merging

@eileenmcnaughton eileenmcnaughton merged commit 7946b45 into civicrm:master Jun 7, 2021
@eileenmcnaughton eileenmcnaughton deleted the searchKitLinkFix branch June 7, 2021 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants