diff --git a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts index 1a8b6504..c55e616d 100644 --- a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts +++ b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts @@ -417,7 +417,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { audioPath } = await files.tts(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: audioPath }); + setSearchParams({ view: filePath, ephemeral: audioPath }); } catch { toast.error('Failed to generate speech audio', { id: toastId }); } @@ -430,7 +430,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { ocrPath } = await files.ocr(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: ocrPath }); + setSearchParams({ view: filePath, ephemeral: ocrPath }); } catch { toast.error('Failed to extract text from image', { id: toastId }); } @@ -443,7 +443,7 @@ export const useFileBrowserApp = (basePath: string, rootOverride?: string, initi const { transcriptionPath } = await files.transcribe(filePath, { saveNextTo: true }); toast.dismiss(toastId); refresh(); - setSearchParams({ view: transcriptionPath }); + setSearchParams({ view: filePath, ephemeral: transcriptionPath }); } catch { toast.error('Failed to transcribe audio', { id: toastId }); }