refactor: replace docs.langbot.app URLs with link.langbot.app short links

All documentation URLs now go through Cloudflare Bulk Redirects
(link.langbot.app) so future doc path changes won't break
already-released versions.

Short link format: link.langbot.app/{lang}/docs/{topic}
Supported languages: zh, en, ja
This commit is contained in:
RockChinQ
2026-03-30 10:53:21 +08:00
parent 1c419e3591
commit 1201949f2c
24 changed files with 87 additions and 87 deletions
@@ -36,11 +36,11 @@ export default function NewVersionDialog({
const getUpdateDocsUrl = () => {
const language = i18n.language;
if (language === 'zh-Hans' || language === 'zh-Hant') {
return 'https://docs.langbot.app/zh/deploy/update';
return 'https://link.langbot.app/zh/docs/update';
} else if (language === 'ja-JP') {
return 'https://docs.langbot.app/ja/deploy/update';
return 'https://link.langbot.app/ja/docs/update';
} else {
return 'https://docs.langbot.app/en/deploy/update';
return 'https://link.langbot.app/en/docs/update';
}
};