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

redirect demo.pra.digital.gov to pra.digital.gov #260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ services:
- app:www.digitalgov.gov
- app:emerging.digital.gov
- app:summit.digitalgov.gov
- app:pra.digital.gov
- app:demo.pra.digital.gov
- app:www.digital.gov
- app:openopps.digitalgov.gov
- app:plainlanguage.gov
Expand Down
2 changes: 2 additions & 0 deletions pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@
to: modularcontracting
- testing-cookbook
- writing-lab-guide
- from: demo.pra.digital.gov
to: pra.digital.gov
6 changes: 6 additions & 0 deletions templates/_federalist-redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -696,3 +696,9 @@ server {
}

}
server {
listen {{ PORT }};
set $target_domain pra.digital.gov;
server_name demo.pra.digital.gov;
return 301 https://$target_domain$request_uri;
}
1 change: 1 addition & 0 deletions templates/manifest-prod.yml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ routes:
- route: digitalgov.gov
- route: www.digitalgov.gov
- route: accessibility.digital.gov
- route: pra.digital.gov
- route: emerging.digital.gov
- route: summit.digitalgov.gov
- route: www.digital.gov
Expand Down
1 change: 1 addition & 0 deletions test/integration/test_federalist_redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const expectedRedirects = [
{ from: 'join.tts.gsa.gov', to: 'tts.gsa.gov/join', redirectCode: 301 },
{ from: 'join.tts.gsa.gov/working-at-tts/', to: 'handbook.tts.gsa.gov/about-us/tts-history', redirectCode: 301, noPath: true },
{ from: 'join.tts.gsa.gov/tts-offices/', to: 'handbook.tts.gsa.gov/#tts-offices', redirectCode: 301, noPath: true },
{ from: 'demo.pra.digital.gov', to: 'pra.digital.gov', redirectCode: 301, noPath: true },
];

function redirectOk(t, from, to, redirectCode) {
Expand Down