From 7444e66994f38a522bf759932084ffcbb5035881 Mon Sep 17 00:00:00 2001 From: looechao Date: Wed, 10 Dec 2025 13:14:01 +0800 Subject: [PATCH] fix: decode URL parameter in search page --- src/pages/search/[q].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/search/[q].astro b/src/pages/search/[q].astro index 866d670..f20367c 100644 --- a/src/pages/search/[q].astro +++ b/src/pages/search/[q].astro @@ -2,7 +2,7 @@ import List from '../../components/list.astro' import { getChannelInfo } from '../../lib/telegram' -const q = Astro.url.searchParams.get('q') || Astro.params.q +const q = Astro.url.searchParams.get('q') || decodeURIComponent(Astro.params.q || '') const channel = await getChannelInfo(Astro, { q, })