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 external links in new tab #784

Merged
merged 5 commits into from
Jun 30, 2024
Merged

Open external links in new tab #784

merged 5 commits into from
Jun 30, 2024

Conversation

meissadia
Copy link
Collaborator

Close #779

Changes

  • Centralize logic to open external links in new tab
  • Remove all explicit target="_blank"s

How to test this PR

  1. (internal) Visit authenticated landing page, click on an Institution in the Review your FI profile section; Should open in same tab
  2. (external) Visit Upload page and click on the "filing instructions guide..." link, should open in new tab

Copy link
Contributor

@billhimmelsbach billhimmelsbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyo! Looks good, and I've added a ticket to discuss adding this functionality to ListLinks too post-mvp 👍

@meissadia meissadia merged commit 6562aa4 into main Jun 30, 2024
4 checks passed
@meissadia meissadia deleted the 779-external__new-tab branch June 30, 2024 05:20
@billhimmelsbach billhimmelsbach restored the 779-external__new-tab branch July 1, 2024 06:40
shindigira added a commit that referenced this pull request Sep 16, 2024
…me): additional resources - clicking opens new tabs (#796)

closes #795 
Followup to #779,
#784

## Changes
- feat: `ListLinks` now open new tabs by default
- enhancement: Footer & Filing Home - additional resources - clicking
opens new tabs

## How to test this PR

- Click Footer and Additional Resource Links

## Screenshots
<img width="820" alt="Screenshot 2024-07-09 at 12 45 15 PM"
src="https://github.com/cfpb/sbl-frontend/assets/13324863/87292507-604f-48bf-8b26-af2d9f835051">
<img width="303" alt="Screenshot 2024-07-09 at 12 55 06 PM"
src="https://github.com/cfpb/sbl-frontend/assets/13324863/c96968aa-c9aa-47b6-8250-cbe54219761c">

## References
#784
#779
@natalia-fitzgerald
Copy link

@billhimmelsbach
Here's another one that's related to cfpb/sbl-ux#18...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Link] Open all external links in new tab
3 participants