Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Redirects middleware #1013

Merged
merged 10 commits into from
Jan 17, 2024
Merged

Redirects middleware #1013

merged 10 commits into from
Jan 17, 2024

Conversation

scottqueen-bixal
Copy link
Contributor

@scottqueen-bixal scottqueen-bixal commented Jan 17, 2024

PR Summary

This works to update our middleware to handle redirects for the new benefit finder app located on usa.gov

Related Github Issue

Type of change

  • Task

Detailed Testing steps

Since this turns our application into middleware that redirects routes to new urls, you won't be able to navigate to the pages build without being redirected.

Use the following chart to confirm our redirects are working.

Current New
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/ https://usa.gov/benefit-finder
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/death-of-a-loved-one https://usa.gov/benefit-finder/death
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/disability https://usa.gov/benefit-finder/disability
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/retirement https://usa.gov/benefit-finder/retirement
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/es http://usa.gov/es/buscador-beneficios
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/es/death-of-a-loved-one https://usa.gov/es/buscador-beneficios/muerte
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/es/retirement https://usa.gov/es/buscador-beneficios/jubilacion
https://federalist-edd11e6f-8be2-4dc2-a85e-1782e0bcb08e.sites.pages.cloud.gov/preview/gsa/usagov-benefits-eligibility/redirects-middleware/es/disability https://usa.gov/es/buscador-beneficios/discapacidad

Copy link

Pa11y testing results ``` > [email protected] test:pa11y > pa11y http://localhost:3000/

Welcome to Pa11y

Running Pa11y on URL http://localhost:3000/

No issues found!

Copy link

Pa11y testing results ``` > [email protected] test:pa11y > pa11y http://localhost:3000/

Welcome to Pa11y

Running Pa11y on URL http://localhost:3000/

No issues found!

@scottqueen-bixal scottqueen-bixal changed the base branch from main to release January 17, 2024 19:38
Copy link

Pa11y testing results ``` > [email protected] test:pa11y > pa11y http://localhost:3000/

Welcome to Pa11y

Running Pa11y on URL http://localhost:3000/

No issues found!

Copy link
Contributor

@fongcindy fongcindy left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!!

@scottqueen-bixal scottqueen-bixal marked this pull request as ready for review January 17, 2024 19:58
@scottqueen-bixal scottqueen-bixal requested a review from a team as a code owner January 17, 2024 19:58
@scottqueen-bixal scottqueen-bixal merged commit 86e0947 into release Jan 17, 2024
9 of 13 checks passed
@scottqueen-bixal scottqueen-bixal deleted the redirects-middleware branch January 17, 2024 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants