diff --git a/core/screens/search/typesense/SearchExamples.tsx b/core/screens/search/typesense/SearchExamples.tsx index 8a8248a0f4d43103c45eb2d1fe427bbac995c35d..f5e4b9eb3f5249be639bc7976f1458630c6bd524 100644 --- a/core/screens/search/typesense/SearchExamples.tsx +++ b/core/screens/search/typesense/SearchExamples.tsx @@ -40,6 +40,10 @@ export const SearchExamples = ({ onQuerySelect }: SearchExamplesProps) => { <Text size="lg">{t('search.typesense.examples.headline')}</Text> {displayedExampleIds.map((id) => { const text = t(`search.typesense.examples.${selectedFacet}${id}`) + const params = new URLSearchParams({ + facet: selectedFacet, + query: text, + }) return ( <View style={styles.example} key={id}> <HoliIcon icon={Search} size={16} color={styles.icon.color} style={styles.icon} /> @@ -47,7 +51,7 @@ export const SearchExamples = ({ onQuerySelect }: SearchExamplesProps) => { size="md" color="support" label={text} - href={`/search?facet=${selectedFacet}&query=${encodeURIComponent(text)}`} + href={`/search?${params.toString()}`} onPress={() => { onQuerySelect(text) // prevent event propagation