Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions .changeset/login-legal-links-new-tab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'ePDS': patch
---

Terms of Use and Privacy Policy links on the sign-in page now open in a new tab.

**Affects:** End users

**End users:** clicking Terms of Use or Privacy Policy on the sign-in page no longer navigates away from the in-progress sign-in. The links open in a new tab instead, so you can read the legal page and come back to finish signing in without restarting.
4 changes: 2 additions & 2 deletions packages/auth-service/src/routes/login-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ export function renderLoginPage(opts: {
opts.initialStep === 'otp' ? 'none' : 'block'
};">By signing in, you agree to ${termsLead} <a href="${escapeHtml(
opts.termsOfServiceUrl as string,
)}" class="terms-link">Terms of Use</a> and <a href="${escapeHtml(
)}" class="terms-link" target="_blank" rel="noopener noreferrer">Terms of Use</a> and <a href="${escapeHtml(
opts.privacyPolicyUrl as string,
)}" class="terms-link">Privacy Policy</a>.</div>`
)}" class="terms-link" target="_blank" rel="noopener noreferrer">Privacy Policy</a>.</div>`
: ''

const hasGoogle = 'google' in socialProviders
Expand Down
Loading