0 Votes

Changes for page Nonwhite Privilege

Last modified by Ryan C on 2025/06/02 17:54

From version 119.1
edited by Ryan C
on 2025/05/03 16:22
Change comment: There is no comment for this version
To version 120.1
edited by Ryan C
on 2025/05/03 16:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -102,7 +102,7 @@
102 102   #set($ext = $stringtool.substringAfterLast($filename, "."))
103 103   #if($ext.equalsIgnoreCase("jpg") || $ext.equalsIgnoreCase("jpeg") || $ext.equalsIgnoreCase("png") || $ext.equalsIgnoreCase("webp"))
104 104   <div style="flex: 1 1 300px; max-width: 300px;">
105 - <img src="$xwiki.getURL($doc.fullName, 'download', "filename=$escapetool.url($filename)")"
105 + <img src="$xwiki.getDocument($doc.fullName).getAttachmentURL($filename, true)"
106 106   alt="$filename"
107 107   style="max-width: 100%; height: auto; border: 1px solid #444;"/>
108 108   </div>