diff --git a/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java b/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java index 5742c4f3..4109afd4 100644 --- a/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java +++ b/jodconverter-web/src/main/java/com/yudianbank/web/controller/OnlinePreviewController.java @@ -69,6 +69,7 @@ public class OnlinePreviewController { imgUrls = Lists.newArrayList(url); } model.addAttribute("imgurls", imgUrls); + model.addAttribute("currentUrl",url); return "picture"; } else if (type.equalsIgnoreCase("simText")) { ReturnResponse response = simTextUtil.readSimText(decodedUrl, fileName); diff --git a/jodconverter-web/src/main/resources/web/picture.ftl b/jodconverter-web/src/main/resources/web/picture.ftl index c83ec222..5ffcbeda 100644 --- a/jodconverter-web/src/main/resources/web/picture.ftl +++ b/jodconverter-web/src/main/resources/web/picture.ftl @@ -7,20 +7,22 @@