Skip to content

New "Return to Grants.gov" pattern #8845

@andycochran

Description

@andycochran

Summary

The returnToGrants link is meant to give users who arrived on SGG a convenient way back to GG. Links to SGG search from GG's global navigation include a query parameter (?utm_source=Grants.gov) that sets a boolean in the current session. It was specifically meant for the search page and opportunities. But, as-implemented, it follows you around the site once the boolean is set. It shows on every page that page includes breadcrumbs — even pages like the Newsletter pages that don't logically need to help the user "return" to GG.

Instead of the returnToGrants link being part of the <Breadcrumbs> component, it should be easy for users to get to GG from any page, regardless of whether it has breadcrumbs. It does not make sense in the source order (it's follows the breadcrumbs), needs to be placed in a better location in the layout, is oddly positioned on mobile, and it breaks the layout when breadcrumbs fill the full width of the page:

Image

The returnToGrants link is an antipattern that tries to replicate functionality of the browser's back button. GG has also implemented its link to SGG as a redirect that breaks browser history so that the browser back button does not function (see bug discussed in Slack thread).

Solution:

Image

Acceptance criteria

  • Remove the returnToGrants link from our custom Breadcrumbs component
  • Deprecate the ?utm_source=Grants.gov query parameter
  • Ask MicroHealth to link directly to Simpler Search w/o the query param (this is not necessary to resolve this Issue, but the query param will do nothing)
  • Replace the returnToGrants functionality with a global action alongside the site header for navigating to to GG

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions