From 1eed0292b61746b0ced3dcd8f67ea9d0f68c18c7 Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 10 Dec 2025 13:54:21 +0000 Subject: [PATCH] absolute base path --- frontend/src/core/components/viewer/LocalEmbedPDF.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/core/components/viewer/LocalEmbedPDF.tsx b/frontend/src/core/components/viewer/LocalEmbedPDF.tsx index 8fe8c172c8..0b79604fd6 100644 --- a/frontend/src/core/components/viewer/LocalEmbedPDF.tsx +++ b/frontend/src/core/components/viewer/LocalEmbedPDF.tsx @@ -46,6 +46,7 @@ import { PrintAPIBridge } from '@app/components/viewer/PrintAPIBridge'; import { isPdfFile } from '@app/utils/fileUtils'; import { useTranslation } from 'react-i18next'; import { LinkLayer } from '@app/components/viewer/LinkLayer'; +import { absoluteWithBasePath } from '@app/constants/app'; interface LocalEmbedPDFProps { file?: File | Blob; @@ -169,7 +170,7 @@ export function LocalEmbedPDF({ file, url, enableAnnotations = false, onSignatur // Initialize the engine with the React hook - use local WASM for offline support const { engine, isLoading, error } = usePdfiumEngine({ - wasmUrl: '/pdfium/pdfium.wasm', + wasmUrl: absoluteWithBasePath('/pdfium/pdfium.wasm'), });