diff --git a/branding/smb/smb-ui.patch b/branding/smb/smb-ui.patch index f8e9284..fdf1f06 100644 --- a/branding/smb/smb-ui.patch +++ b/branding/smb/smb-ui.patch @@ -37,7 +37,7 @@ index 42fb3bd8..5ee25228 100644 + // browsable link and no stored file to preview — the preview pane would just + // fail. Copy the logical path to the clipboard so the user can open the file + // directly on the share. Mirrors openDocument() used by the chat view. -+ if (document.from_ingestion_api || document.metadata?.smb_source) { ++ if (document.metadata?.smb_source) { + // The full network path is in metadata.logical_path (the search result does + // not always carry `link`); semantic_identifier is only the file name. + const logicalPath = document.metadata?.logical_path; @@ -76,7 +76,7 @@ index ce7eab36..6e4baff3 100644 + // browsable link and no stored file to preview — a normal preview click would + // just fail. Instead, surface the logical path by copying it to the clipboard + // so the user can open the file directly on the share. -+ if (document.from_ingestion_api || document.metadata?.smb_source) { ++ if (document.metadata?.smb_source) { + // The full network path is in metadata.logical_path (the citation object + // does not always carry `link`); semantic_identifier is only the file name. + const path =