Changes for page PDF Viewer Macro

Last modified by Ludovic Dubost on 2023/04/25 09:12

From version 2.1
edited by Ludovic Dubost
on 2018/11/30 15:23
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 7.1
edited by Ludovic Dubost
on 2022/08/01 13:48
Change comment: Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -44,6 +44,8 @@
44 44   #if ($url)
45 45   #set($url = $escapetool.url($url))
46 46   #set($pdfviewerurl = $xwiki.getDocument("XWiki.PDFViewerMacro").getAttachmentURL("pdfviewer.zip"))
47 + ## Attachment URL have query parameters for cache issue.
48 + #set($pdfviewerurl = $pdfviewerurl.split("\?")[0])
47 47   {{html clean=false}}
48 48   <div>
49 49   <!--[if lt IE 10]>