mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Need to encode the query
This commit is contained in:
parent
a8331375ba
commit
3989b218d0
1 changed files with 3 additions and 1 deletions
|
@ -172,7 +172,9 @@ export const SHORTCUTS_META = {
|
|||
id: 'search',
|
||||
title: ({ query }) => (query ? `"${query}"` : 'Search'),
|
||||
path: ({ query }) =>
|
||||
query ? `/search?q=${query}&type=statuses` : '/search',
|
||||
query
|
||||
? `/search?q=${encodeURIComponent(query)}&type=statuses`
|
||||
: '/search',
|
||||
icon: 'search',
|
||||
excludeViewMode: ({ query }) => (!query ? ['multi-column'] : []),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue