diff --git a/src/main/java/app/handong/feed/controller/page/ShareMetaPageController.java b/src/main/java/app/handong/feed/controller/page/ShareMetaPageController.java index 68edcf6..ee62928 100644 --- a/src/main/java/app/handong/feed/controller/page/ShareMetaPageController.java +++ b/src/main/java/app/handong/feed/controller/page/ShareMetaPageController.java @@ -30,6 +30,7 @@ public String page(@PathVariable("hash") String hash, Model model) { model.addAttribute("imageUrl", detail.getFiles().get(0)); else model.addAttribute("imageUrl", "https://feed.handong.app/og-image.jpg"); model.addAttribute("finalUrl", "https://feed.handong.app/kafeed/" + detail.getId()); + model.addAttribute("hashUrl", "https://feed.handong.app/k/" + hash); return "sharemeta.html"; } diff --git a/src/main/resources/templates/sharemeta.html b/src/main/resources/templates/sharemeta.html index 4c88c08..ec212bc 100644 --- a/src/main/resources/templates/sharemeta.html +++ b/src/main/resources/templates/sharemeta.html @@ -6,7 +6,7 @@ - + Redirecting...