diff --git a/dev/check-links.mjs b/dev/check-links.mjs index f9fd80857..83156af84 100644 --- a/dev/check-links.mjs +++ b/dev/check-links.mjs @@ -11,6 +11,7 @@ * - Links whose case differs from the real path (work on macOS, 404 on Linux) * - Missing anchor/heading references * - Invalid file paths + * - E-mail addresses without mailto:, which resolve to a page path * - With --check-self-links, absolute links to this site (https://sourcegraph.com/docs/..., * the legacy https://docs.sourcegraph.com/... host, http://, //, www.), which * should be relative links; the finding proposes one, following src/data/redirects.ts @@ -348,9 +349,10 @@ function validateLink(link, currentFile, maps) { return null; } - // Skip email addresses without mailto: prefix (common shorthand) + // An e-mail address without mailto: is a relative link: the browser resolves + // [Support](support@example.com) to /docs//support@example.com if (url.includes('@') && !url.startsWith('/') && !url.includes('/')) { - return null; + return { error: 'E-mail address without mailto: resolves to a page path', fix: `mailto:${url}` }; } // Handle anchor-only links (#heading) diff --git a/docs/pricing/plans/enterprise-starter.mdx b/docs/pricing/plans/enterprise-starter.mdx index 39415d665..539f6a0d9 100644 --- a/docs/pricing/plans/enterprise-starter.mdx +++ b/docs/pricing/plans/enterprise-starter.mdx @@ -119,9 +119,9 @@ You can access your invoices via the **Workspace settings > Billing** page by cl After updating or resolving your payment method issue that occurred during the automatic subscription renewal, you may do one of the following to pay the invoice for your past-due subscription: -1. Wait for our system to re-attempt the charge for the invoice. It usually takes up to 24 hours. If it does not happen after 24 hours, please contact [Support](support@sourcegraph.com) to resolve the issue. -1. In the **Workspace settings > Billing** page, click the **View invoices** button, which takes you to the Stripe Customer Portal. Then, pay the invoice there. Our system will reconcile your payment within 24 hours. If it does not reconcile after 24 hours, please contact [Support](support@sourcegraph.com) to resolve the issue. -1. Contact [Support](support@sourcegraph.com) to request re-attempt the charge for the invoice using the payment method on file. +1. Wait for our system to re-attempt the charge for the invoice. It usually takes up to 24 hours. If it does not happen after 24 hours, please contact [Support](mailto:support@sourcegraph.com) to resolve the issue. +1. In the **Workspace settings > Billing** page, click the **View invoices** button, which takes you to the Stripe Customer Portal. Then, pay the invoice there. Our system will reconcile your payment within 24 hours. If it does not reconcile after 24 hours, please contact [Support](mailto:support@sourcegraph.com) to resolve the issue. +1. Contact [Support](mailto:support@sourcegraph.com) to request re-attempt the charge for the invoice using the payment method on file. ### Are there any refunds for the subscription?