Merge pull request #121 from looechao/fix/search-url-decode

fix: decode URL parameter in search page
This commit is contained in:
面条
2025-12-13 16:24:16 +08:00
committed by GitHub

View File

@@ -2,7 +2,7 @@
import List from '../../components/list.astro' import List from '../../components/list.astro'
import { getChannelInfo } from '../../lib/telegram' 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, { const channel = await getChannelInfo(Astro, {
q, q,
}) })