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
1 change: 1 addition & 0 deletions help-link-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_help_link_tracking.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading