diff --git a/web/src/routes/(user)/search/+page.svelte b/web/src/routes/(user)/search/+page.svelte index ce7585d71..69bffadde 100644 --- a/web/src/routes/(user)/search/+page.svelte +++ b/web/src/routes/(user)/search/+page.svelte @@ -43,7 +43,14 @@ } }); - $: term = $page.url.searchParams.get('q') || data.term || ''; + $: term = (() => { + let term = $page.url.searchParams.get('q') || data.term || ''; + const isMetadataSearch = $page.url.searchParams.get('clip') === 'false'; + if (isMetadataSearch && term !== '') { + term = `m:${term}`; + } + return term; + })(); let selectedAssets: Set = new Set(); $: isMultiSelectionMode = selectedAssets.size > 0;