1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00
2018-09-17 16:42:58 +02:00

12 lines
203 B
JavaScript

import {urlEscape} from 'components/utils/query'
export const makeSearchQueryProps = function(query) {
query = urlEscape(query);
return {
pathname: '/search',
search: `?q=${query}`
}
}