From f54f0398c1e3fc49625f5c09d040a25a66517065 Mon Sep 17 00:00:00 2001 From: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> Date: Tue, 21 May 2024 22:22:22 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E7=85=A7=E4=BC=9A=E3=81=A7?= =?UTF-8?q?=E5=85=A5=E5=8A=9B=E3=81=8C`#`=E3=81=AE=E3=81=BF=E3=81=AE?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AF`/tags/`=E3=81=AB=E9=81=B7=E7=A7=BB?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/lookup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/lookup.ts b/packages/frontend/src/scripts/lookup.ts index 7f020b15cc..5731e8a0b1 100644 --- a/packages/frontend/src/scripts/lookup.ts +++ b/packages/frontend/src/scripts/lookup.ts @@ -23,7 +23,7 @@ export async function lookup(router?: Router) { return; } - if (query.startsWith('#')) { + if (query.startsWith('#') && query.length > 1) { _router.push(`/tags/${encodeURIComponent(query.substring(1))}`); return; }