summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-16 12:51:42 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-16 12:51:42 +0100
commit839602bc2401491407f9a7d5bb7804ec57769954 (patch)
treee36cc6e97e9a6ecdce363bf8333e88cef78236af /templates
parentcec932e3c3a0667e9e1aa3af3b0f3ffb6a76a43b (diff)
downloadliberty-839602bc2401491407f9a7d5bb7804ec57769954.tar.gz
liberty-839602bc2401491407f9a7d5bb7804ec57769954.tar.bz2
liberty-839602bc2401491407f9a7d5bb7804ec57769954.zip
Fix pdfjs viewer URL: move zoom to hash, fix search hash parameter
zoom=page-width was appended to the file URL; moved to viewer hash where pdfjs expects it. search= now correctly appended to the same hash fragment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/mime/pdf/view.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/mime/pdf/view.tpl b/templates/mime/pdf/view.tpl
index 3a41427..39249a5 100755
--- a/templates/mime/pdf/view.tpl
+++ b/templates/mime/pdf/view.tpl
@@ -1,7 +1,6 @@
{strip}
{if !empty($attachment.source_file)}
- <iframe src="{$smarty.const.THEMES_PKG_URL}js/pdfjs-5.2.133/web/viewer.html?file={$smarty.const.BIT_ROOT_URI}{$attachment.source_url}?zoom=page-width
- {if !empty($highlight)}#search={$highlight|escape}{/if}" width="100%" height="600px"></iframe>
+ <iframe src="{$smarty.const.THEMES_PKG_URL}js/pdfjs-5.2.133/web/viewer.html?file={$smarty.const.BIT_ROOT_URI}{$attachment.source_url}#zoom=page-width{if !empty($highlight)}&amp;search={$highlight|escape}{/if}" width="100%" height="600px"></iframe>
{include file="bitpackage:liberty/mime_meta_inc.tpl"}
{else}
{include file=$gLibertySystem->getMimeTemplate('view', $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER)}