diff --git a/src/app/[locale]/search/components/KeywordSearch.tsx b/src/app/[locale]/search/components/KeywordSearch.tsx index 6181df621..93be93340 100644 --- a/src/app/[locale]/search/components/KeywordSearch.tsx +++ b/src/app/[locale]/search/components/KeywordSearch.tsx @@ -159,8 +159,12 @@ export default function KeywordSearch({ let paramString = '' paramString += `?searchText=${encodeURIComponent(searchText)}` for (const k in searchOptions) { - if (k === 'entireDocument' || searchOptions[k as keyof SEARCH_STATE] === false) continue - paramString += `&typeMasks=${encodeURIComponent(k)}` + if (searchOptions[k as keyof SEARCH_STATE] === false) continue + if (k === 'entireDocument') { + paramString += '&typeMasks=document' + } else { + paramString += `&typeMasks=${encodeURIComponent(k)}` + } } queryUrl += paramString