department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Staging Review finding: Links open in a new tab without warning #88444

Open shiragoodman opened 1 month ago

shiragoodman commented 1 month ago

Need help? Please review how to read a Staging Review ticket. Tag @platform-governance-team-members on Slack if you need further assistance.

Product Information

Team: Appointments Product: Appointments Feature: Appointment Details Redesign

Findings details

VA.gov Experience Standard - issue: User is taken out of the primary flow without notification. VA.gov Experience Standard - category: Efficiency Launch-blocking: No Design System review: No Collab Cycle Reviewer: @erinrwhite (IA)

Description

Links in the application footer, the link to “Go to My VA Health” on the appointments list, and link to directions in Google Maps on appointments details page open in new tab without warning.

Recommended action

Any links that open in a new tab should include link text at the end of the link that says “(opens in a new tab)”. That said, because users are not in a form flow where they might lose form prgress, links should open in the same tab. See DS guidance on link behavior for more information.

References


Next Steps for the VFS Team

outerpress commented 1 month ago

@sterkenburgsara we're currently opening some links in new pages, and I want to check if we should be:

Links to My VA Health (OH), for example in this alert:

Screenshot 2024-07-16 at 9.34.49 AM.png

Links to facility locator and the Mobile Health Feedback survey in this screenshot:

Screenshot 2024-07-16 at 9.43.18 AM.png

All of these are "VA.gov" links, so it sounds like they should:

But I'm not sure if we're making exceptions for OH (in particular).

Thanks! FYI @kristenmcconnell @kfink24 - and correct me if i missed anything @erinrwhite

sterkenburgsara commented 1 month ago

For some reason these images aren't rendering for me, but yes @outerpress what you have above sounds right to me. The most updated guidance is to avoid opening links in another tab unless they are task interruptions (such as the scheduling flow), but I defer to OCTO on whether there is value in departing from that for links that go out to the My VA Health (OH) platform. // cc @kfink24 and @kristenmcconnell @mnorthuis @DanielleThierryUSDSVA

mnorthuis commented 1 month ago

@erinrwhite and @sterkenburgsara are correct on the guidance - links should not open in a new tab. The only exception, is if the user is in a form flow and a link will cause them to lose data. I cannot see the attached images above, so I can't confirm that is the case for your links or not, but if the person is in the process of scheduling an appointment, ideally we would avoid offering links out of the experience all together, but if we have to, they can open new tabs and should have link text that indicates that.

outerpress commented 1 month ago

Thanks all! These links appear in both the scheduling flow and the "manage appointment" list pages, so it sounds like we'll need to treat them differently based on context.

Also good to know that we're not treating My VA Health/OH or the Mobile feedback forms as external pages.

outerpress commented 1 month ago

@ldelacosta I added design ticket #88871 to handle this.