-
Notifications
You must be signed in to change notification settings - Fork 24
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
Consolidate login.gov
url
#218
base: main
Are you sure you want to change the base?
Conversation
eebaf9e
to
cde64e0
Compare
pages.yml
Outdated
- from: www.login.gov | ||
to: login.gov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want the reverse, to redirect from login.gov to www.login.gov
Or at least we've been using www version as canonical in the site itself and in links generating on the IdP.
@@ -496,6 +496,14 @@ server { | |||
return 301 https://$target_domain; | |||
} | |||
|
|||
# www.login.gov to login.gov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# www.login.gov to login.gov | |
# login.gov to www.login.gov |
@@ -30,6 +30,7 @@ const expectedRedirects = [ | |||
{ from: 'usability.gov', to: 'www.usability.gov', redirectCode: 301 }, | |||
{ from: 'emerging.digital.gov', to: 'digital.gov/topics/emerging-tech', redirectCode: 301, noPath: true }, | |||
{ from: 'components.designsystem.digital.gov', to: 'designsystem.digital.gov/components', redirectCode: 301, noPath: true }, | |||
{ from: 'www.login.gov', to: 'login.gov', redirectCode: 301} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a syntax error with missing comma
{ from: 'www.login.gov', to: 'login.gov', redirectCode: 301} | |
{ from: 'www.login.gov', to: 'login.gov', redirectCode: 301 }, |
- from: login.gov | ||
to: www.login.gov | ||
toDomain: login.gov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? Stands out to me that toDomain
is the legacy domain. Should it be the new domain?
Changes proposed in this pull request:
Current state: login.gov and www.login.gov are two valid and separate URLs that look like they are the same website. This PR will work to consolidate the URLs--a user will hit login.gov no matter what URL that they use.
C
Security considerations
None