Skip to content

Commit 7a0c6d7

Browse files
authored
Merge pull request #121 from looechao/fix/search-url-decode
fix: decode URL parameter in search page
2 parents bcc27cf + 7444e66 commit 7a0c6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/search/[q].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import List from '../../components/list.astro'
33
import { getChannelInfo } from '../../lib/telegram'
44
5-
const q = Astro.url.searchParams.get('q') || Astro.params.q
5+
const q = Astro.url.searchParams.get('q') || decodeURIComponent(Astro.params.q || '')
66
const channel = await getChannelInfo(Astro, {
77
q,
88
})

0 commit comments

Comments
 (0)