mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +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',
|
id: 'search',
|
||||||
title: ({ query }) => (query ? `"${query}"` : 'Search'),
|
title: ({ query }) => (query ? `"${query}"` : 'Search'),
|
||||||
path: ({ query }) =>
|
path: ({ query }) =>
|
||||||
query ? `/search?q=${query}&type=statuses` : '/search',
|
query
|
||||||
|
? `/search?q=${encodeURIComponent(query)}&type=statuses`
|
||||||
|
: '/search',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
excludeViewMode: ({ query }) => (!query ? ['multi-column'] : []),
|
excludeViewMode: ({ query }) => (!query ? ['multi-column'] : []),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue