fix: decode URL parameter in search page

This commit is contained in:
looechao
2025-12-10 13:14:01 +08:00
parent bcc27cf219
commit 7444e66994

View File

@@ -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,
})