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

chore: tidy up external links #7439

Closed
wants to merge 1 commit into from
Closed
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
60 changes: 27 additions & 33 deletions frontend/src/constants/links.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@
import { GOGOV_BASE_URL } from '~shared/constants'

import { PRIVACY_POLICY_ROUTE, TOU_ROUTE } from './routes'

export const CONTACT_US = 'https://go.gov.sg/formsg-support'
export const FEATURE_REQUEST = 'https://go.gov.sg/form-featurerequest'
export const REPORT_VULNERABILITY = 'https://go.gov.sg/report-vulnerability'
export const OSS_README = 'https://go.gov.sg/formsg-thirdparty'
export const CONTACT_US = `${GOGOV_BASE_URL}/formsg-support`
export const FEATURE_REQUEST = `${GOGOV_BASE_URL}/form-featurerequest`
export const REPORT_VULNERABILITY = `${GOGOV_BASE_URL}/report-vulnerability`
export const OSS_README = `${GOGOV_BASE_URL}/formsg-thirdparty'`

export const SINGPASS_FAQ = 'https://www.singpass.gov.sg/main/html/faq.html'

// FormSG guide links
export const FORM_GUIDE = 'https://go.gov.sg/formsg-guides'
export const GUIDE_WEBHOOKS = 'https://go.gov.sg/formsg-guide-webhooks'
export const GUIDE_EMAIL_MODE = 'https://go.gov.sg/formsg-guide-email-mode'
export const GUIDE_STORAGE_MODE = 'https://go.gov.sg/formsg-guide-storage-mode'
export const GUIDE_FORM_LOGIC = 'https://go.gov.sg/formsg-guide-logic'
export const GUIDE_FORM_MRF = 'https://go.gov.sg/formsg-guide-mrf'
export const FORM_GUIDE = `${GOGOV_BASE_URL}/formsg-guides`
export const GUIDE_WEBHOOKS = `${GOGOV_BASE_URL}/formsg-guide-webhooks`
export const GUIDE_EMAIL_MODE = `${GOGOV_BASE_URL}/formsg-guide-email-mode`
export const GUIDE_STORAGE_MODE = `${GOGOV_BASE_URL}/formsg-guide-storage-mode`
export const GUIDE_FORM_LOGIC = `${GOGOV_BASE_URL}/formsg-guide-logic`
export const GUIDE_FORM_MRF = `${GOGOV_BASE_URL}/formsg-guide-mrf`
export const GUIDE_MRF_MODE = 'http://go.gov.sg/formsg-mrf'
export const GUIDE_SPCP_ESRVCID =
'https://go.gov.sg/formsg-guide-singpass-myinfo'
export const GUIDE_ENABLE_SPCP =
'https://go.gov.sg/formsg-guide-singpass-myinfo-enable'
export const GUIDE_TWILIO = 'https://go.gov.sg/formsg-guide-verified-smses'
export const GUIDE_ATTACHMENT_SIZE_LIMIT =
'https://go.gov.sg/formsg-guide-attachment-size-increase'
export const GUIDE_E2EE = 'https://go.gov.sg/formsg-guide-e2e'
export const GUIDE_TRANSFER_OWNERSHIP =
'https://go.gov.sg/formsg-guide-transfer-ownership'
export const GUIDE_SECRET_KEY_LOSS =
'https://go.gov.sg/formsg-guide-secret-key-loss'
export const GUIDE_PREVENT_EMAIL_BOUNCE =
'https://go.gov.sg/formsg-guide-email-bounce'
export const GUIDE_EMAIL_RELIABILITY =
'https://go.gov.sg/formsg-guide-email-reliability'
export const GUIDE_PREFILL = 'https://go.gov.sg/formsg-guide-prefills'
export const GUIDE_STRIPE_ONBOARDING = 'https://go.gov.sg/formsg-payments'
export const GUIDE_PAYMENTS_ENTRY = 'https://go.gov.sg/formsg-payment-overview'
export const GUIDE_PAYMENTS_INVOICE_DIFFERENCES =
'https://go.gov.sg/formsg-payments-invoice-differences'
export const GUIDE_SPCP_ESRVCID = `${GOGOV_BASE_URL}/formsg-guide-singpass-myinfo`
export const GUIDE_ENABLE_SPCP = `${GOGOV_BASE_URL}/formsg-guide-singpass-myinfo-enable`
export const GUIDE_TWILIO = `${GOGOV_BASE_URL}/formsg-guide-verified-smses`
export const GUIDE_ATTACHMENT_SIZE_LIMIT = `${GOGOV_BASE_URL}/formsg-guide-attachment-size-increase`
export const GUIDE_E2EE = `${GOGOV_BASE_URL}/formsg-guide-e2e`
export const GUIDE_TRANSFER_OWNERSHIP = `${GOGOV_BASE_URL}/formsg-guide-transfer-ownership`
export const GUIDE_SECRET_KEY_LOSS = `${GOGOV_BASE_URL}/formsg-guide-secret-key-loss`
export const GUIDE_PREVENT_EMAIL_BOUNCE = `${GOGOV_BASE_URL}/formsg-guide-email-bounce`
export const GUIDE_EMAIL_RELIABILITY = `${GOGOV_BASE_URL}/formsg-guide-email-reliability`
export const GUIDE_PREFILL = `${GOGOV_BASE_URL}/formsg-guide-prefills`
export const GUIDE_STRIPE_ONBOARDING = `${GOGOV_BASE_URL}/formsg-payments`
export const GUIDE_PAYMENTS_ENTRY = `${GOGOV_BASE_URL}/formsg-payment-overview`
export const GUIDE_PAYMENTS_INVOICE_DIFFERENCES = `${GOGOV_BASE_URL}/formsg-payments-invoice-differences`
export const GUIDE_ENCRYPTION_BOUNDARY_SHIFT =
'https://guide.form.gov.sg/faq/faq/storage-mode-virus-scanning-and-content-validation'
export const ACCEPTED_FILETYPES_SPREADSHEET = 'https://go.gov.sg/formsg-cwl'
export const ACCEPTED_FILETYPES_SPREADSHEET = `${GOGOV_BASE_URL}/formsg-cwl`

export const APP_FOOTER_LINKS = [
{ label: 'Guide', href: FORM_GUIDE },
Expand Down Expand Up @@ -80,7 +74,7 @@ export const LANDING_PAGE_EXAMPLE_FORMS = [
export const OGP_ALL_PRODUCTS = 'https://www.open.gov.sg/products/overview'
export const OGP_POSTMAN = 'https://postman.gov.sg'
export const OGP_PLUMBER = 'https://plumber.gov.sg/'
export const OGP_SGID = 'https://go.gov.sg/sgid-formsg'
export const OGP_SGID = `${GOGOV_BASE_URL}/sgid-formsg`

export const OGP_FORMSG_REPO = 'https://github.com/opengovsg/formsg'

Expand Down
7 changes: 4 additions & 3 deletions shared/constants/links.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const SUPPORT_FORM_LINK = 'https://go.gov.sg/formsg-support'
export const PUBLIC_PAYMENTS_GUIDE_LINK =
'https://go.gov.sg/formsg-guide-payments'
export const GOGOV_BASE_URL = 'https://go.gov.sg'

export const SUPPORT_FORM_LINK = `${GOGOV_BASE_URL}/formsg-support`
export const PUBLIC_PAYMENTS_GUIDE_LINK = `${GOGOV_BASE_URL}/formsg-guide-payments`

export const SGID_VALID_ORG_PAGE =
'https://docs.id.gov.sg/faq-users#as-a-government-officer-why-am-i-not-able-to-login-to-my-work-tool-using-sgid'
3 changes: 2 additions & 1 deletion src/app/config/features/gogov.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import convict, { Schema } from 'convict'
import { GOGOV_BASE_URL } from 'shared/constants'

export interface IGoGov {
goGovAPIKey: string
Expand All @@ -15,7 +16,7 @@ const goGovSchema: Schema<IGoGov> = {
goGovBaseUrl: {
doc: 'GoGov base URL',
format: String,
default: 'https://go.gov.sg',
default: GOGOV_BASE_URL,
env: 'GOGOV_BASE_URL',
},
}
Expand Down
Loading