The "Contact us" link in the header is an absolute URL that always points to prod. Clicking this in the staging environment will route user to the actual va.gov/contact-us.
This is a problem for user research flows or testing that may be conducted in Staging, and redirect logged in users to the production environment, where they aren't.
The modernized header can be changed in any way as though the Teamsites header does not exist (and we can make the URL relative). Teamsites should continue to point to prod.
Quality / testing notes
Make sure we are only modifying the desktop header.
Mobile header and Injected header have separate markup, and shouldn't be modified.
Acceptance criteria
[ ] On desktop, on VA.gov, Contact Us is a relative link that will direct users to the Contact Us page for their current environment (Prod > Prod; Staging > Staging; Tugboat > Tugboat, etc)
Description
The "Contact us" link in the header is an absolute URL that always points to prod. Clicking this in the staging environment will route user to the actual va.gov/contact-us.
This is a problem for user research flows or testing that may be conducted in Staging, and redirect logged in users to the production environment, where they aren't.
Engineering notes / background
Link is set here for modernized site / header: https://github.com/department-of-veterans-affairs/vets-website/blob/main/src/platform/site-wide/user-nav/components/SearchHelpSignIn.jsx#L122
Per Randi:
Quality / testing notes
Make sure we are only modifying the desktop header.
Mobile header and Injected header have separate markup, and shouldn't be modified.
Acceptance criteria