diff --git a/viewer/components/refresh.ts b/viewer/components/refresh.ts index 127cb4c12..5b28bd8fd 100644 --- a/viewer/components/refresh.ts +++ b/viewer/components/refresh.ts @@ -76,7 +76,7 @@ export async function refresh() { const { encodedPath, docTitle } = utils.parseURL() /* eslint-disable */ const doc = await pdfjsLib.getDocument({ - url: `/${utils.pdfFilePrefix}${encodedPath}`, + url: `${utils.pdfFilePrefix}${encodedPath}`, cMapUrl: '../cmaps/' }).promise PDFViewerApplication.load(doc)