Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('DocumentCaptureTroubleshootingOptions', () => {
'idv.troubleshooting.options.supported_documentslinks.new_tab',
);
expect(links[1].getAttribute('href')).to.equal(
'https://example.com/redirect/?category=verify-your-identity&article=accepted-state-issued-identification&location=document_capture_troubleshooting_options',
'https://example.com/redirect/?category=verify-your-identity&article=accepted-identification-documents&location=document_capture_troubleshooting_options',
);
expect(links[1].target).to.equal('_blank');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function DocumentCaptureTroubleshootingOptions({
showDocumentTips && {
url: getHelpCenterURL({
category: 'verify-your-identity',
article: 'accepted-state-issued-identification',
article: 'accepted-identification-documents',
location,
}),
text: t('idv.troubleshooting.options.supported_documents'),
Expand Down
1 change: 0 additions & 1 deletion app/services/marketing_site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class UnknownArticleException < StandardError; end
manage-your-account/personal-key
trouble-signing-in/face-or-touch-unlock
verify-your-identity/accepted-identification-documents
verify-your-identity/accepted-state-issued-identification
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did we consider adding a redirect in the help center to catch this? or was it never working in the first place

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had brought it up in the related Slack discussion and I think we should, but I don't know that that was captured in this ticket. @jmax-gsa do you know if it's going to be addressed here, or is there a separate ticket for it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know; I'll bring the question up at standup and either do it as part of this, or drop a pointer to the other ticket if there is one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Per conversation w/ May during standup, I'll add the redirect. See her comment on the ticket.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Redirecet added in GSA-TTS/identity-site#1305

verify-your-identity/how-to-add-images-of-your-state-issued-id
verify-your-identity/verify-your-identity-in-person
verify-your-identity/phone-number
Expand Down
2 changes: 1 addition & 1 deletion app/views/idv/in_person/state_id.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<%= link_to(
MarketingSite.help_center_article_url(
category: 'verify-your-identity',
article: 'accepted-state-issued-identification',
article: 'accepted-identification-documents',
),
class: 'display-inline',
) do %>
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/redirect/help_center_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

context 'with valid help center article' do
let(:category) { 'verify-your-identity' }
let(:article) { 'accepted-state-issued-identification' }
let(:article) { 'accepted-identification-documents' }
let(:params) { super().merge(category:, article:) }

it 'redirects to the help center article and logs' do
Expand Down
10 changes: 5 additions & 5 deletions spec/services/marketing_site_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,20 @@

context 'with valid article' do
let(:category) { 'verify-your-identity' }
let(:article) { 'accepted-state-issued-identification' }
let(:article) { 'accepted-identification-documents' }

it_behaves_like 'a marketing site URL'

it 'returns article URL' do
expect(url).to eq(
'https://www.login.gov/help/verify-your-identity/accepted-state-issued-identification/',
'https://www.login.gov/help/verify-your-identity/accepted-identification-documents/',
)
end
end

context 'with anchor' do
let(:category) { 'verify-your-identity' }
let(:article) { 'accepted-state-issued-identification' }
let(:article) { 'accepted-identification-documents' }
let(:article_anchor) { 'test-anchor-url' }
let(:url) do
MarketingSite.help_center_article_url(category:, article:, article_anchor:)
Expand All @@ -193,7 +193,7 @@

it 'returns article URL' do
expect(url).to eq(
'https://www.login.gov/help/verify-your-identity/accepted-state-issued-identification/#test-anchor-url',
'https://www.login.gov/help/verify-your-identity/accepted-identification-documents/#test-anchor-url',
)
end
end
Expand All @@ -213,7 +213,7 @@

context 'with valid article' do
let(:category) { 'verify-your-identity' }
let(:article) { 'accepted-state-issued-identification' }
let(:article) { 'accepted-identification-documents' }

it { expect(result).to eq(true) }

Expand Down