Commit 0a477e9f authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

patorn-client: enclose all search-query links with quotes

Temporary fix until we handle all the edge cases
parent 70878c5f
export default function fieldQueryLink (field, query) {
let template = `${field}:${query}`
if (query.includes(' ')) {
template = `${field}:"${query}"`
}
//let template = `${field}:${query}`
//if (query.includes(' ')) {
const template = `${field}:"${query}"`
//}
const escapedQuery = encodeURIComponent(template)
return `/search?query=${escapedQuery}`
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment