From 9538068d0b5e41ee36c36a35488bb47e89402593 Mon Sep 17 00:00:00 2001 From: Garfield Lee Date: Tue, 24 Mar 2026 10:15:57 +0800 Subject: [PATCH] fix(docs): Try Live leads to 404 in VitePress SPA router (#1461) - Add `target?: string` field to `ButtonItem` interface - Set `target: '_self'` on all locales' Try Live button configs (EN, ZH, JA) - Bind `:target="item.target"` on the `` element in HomeButton.vue VitePress intercepts clicks on anchor tags without an explicit `target` attribute and routes them through Vue Router, which causes a 404 for the external https://airi.moeru.ai/ link. Setting `target="_self"` makes the browser skip the router and perform a native navigation. Co-authored-by-agent: GitHub Copilot --- docs/.vitepress/components/HomeButton.vue | 1 + docs/.vitepress/config.ts | 4 +++- docs/.vitepress/theme/config.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/components/HomeButton.vue b/docs/.vitepress/components/HomeButton.vue index 64c5b337b..1f9f0b360 100644 --- a/docs/.vitepress/components/HomeButton.vue +++ b/docs/.vitepress/components/HomeButton.vue @@ -8,6 +8,7 @@ defineProps<{