Skip to content

Commit

Permalink
fix(server): incorrect og tag (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub authored Nov 4, 2024
1 parent 0adae53 commit 2afe642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/sharemeta.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta property="og:title" th:content="${title}">
<meta property="og:description" content="한동피드에서 확인해보세요">
<meta property="og:image" th:content="${imageUrl}">
<meta property="og:url" th:content="${finalUrl}">
<meta property="og:url" th:content="${hashUrl}">
<title>Redirecting...</title>
<script>
// Redirect to the target URL
Expand Down

0 comments on commit 2afe642

Please sign in to comment.