From b8efd2e7c0c3466e2e5ee51b1fb1995e9fca686e Mon Sep 17 00:00:00 2001 From: littleben Date: Sun, 25 Oct 2026 22:35:00 +0800 Subject: [PATCH] fix: track Help arrivals to custom inventory product --- help-link-tracking.js | 1 + scripts/test_help_link_tracking.cjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/help-link-tracking.js b/help-link-tracking.js index eb22abf4..a3ae7544 100644 --- a/help-link-tracking.js +++ b/help-link-tracking.js @@ -8,6 +8,7 @@ var locales = ["en", "zh", "ru", "de", "fr", "es", "it", "ja", "tr", "uk", "ar"]; // Keep this public product catalog in sync with the website arrival validator. var productRoutes = [ + "custom-inventory-management", "employee-database", "products", "csv-compare", diff --git a/scripts/test_help_link_tracking.cjs b/scripts/test_help_link_tracking.cjs index 6b11843b..20555cfa 100644 --- a/scripts/test_help_link_tracking.cjs +++ b/scripts/test_help_link_tracking.cjs @@ -44,7 +44,7 @@ function runtime(links = [], href = 'https://help.teable.ai/zh/basic/ai/overview test('trusted public official links retain security and other rel tokens', () => { for (const host of ['teable.ai', 'www.teable.ai', 'teable.cn', 'www.teable.cn']) { - for (const segment of ['ai-app-builder', 'zh/compare/airtable', 'blog/example', 'customers/example']) { + for (const segment of ['ai-app-builder', 'custom-inventory-management', 'zh/custom-inventory-management', 'zh/compare/airtable', 'blog/example', 'customers/example']) { const link = anchor(`https://${host}/${segment}?utm_source=existing#section`, 'nofollow NoReferrer sponsored'); runtime([link]); assert.equal(link.getAttribute('rel'), 'nofollow sponsored noopener');