mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 15:09:12 +00:00
Merge pull request #121 from looechao/fix/search-url-decode
fix: decode URL parameter in search page
This commit is contained in:
@@ -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,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user