# 임베드된 댓글에서 Discourse URL 가져오기

**URL:** https://meta.discourse.org/t/getting-discourse-url-on-embedded-comments/158888
**Category:** Support
**Created:** [7월 27, 2020, 3:53오전 UTC](https://meta.discourse.org/t/getting-discourse-url-on-embedded-comments/158888 "2020-07-27T03:53:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Amir\_Sofyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amir_sofyan/32/151651_2.png) [@Amir\_Sofyan](https://meta.discourse.org/u/Amir_Sofyan)
#### Post date: [7월 27, 2020, 3:53오전 UTC](https://meta.discourse.org/t/getting-discourse-url-on-embedded-comments/158888/1 "2020-07-27T03:53:31Z")

</div>

안녕하세요,

Ghost를 CMS로, Discourse를 댓글 시스템으로 사용하는 앱을 개발하는 프로젝트를 진행 중입니다. 현재 제 Ghost 블로그는 codinghorror.com과 마찬가지로 Discourse 댓글이 통합되어 있습니다. 앱에서는 Ghost의 REST API를 통해 콘텐츠를 가져오고, 각 게시물의 “댓글” 버튼을 클릭하면 WebView를 사용하여 댓글을 로드할 예정입니다. 제 문제는 블로그의 각 게시물에 대한 댓글이 저장된 Discourse URL을 어떻게 얻을 수 있는지에 대한 것입니다. Ghost의 제목을 가져와 슬러그로 변환하는 방법을 고려해 봤지만, 제목과 영구 링크(permalink)가 다른 경우가 있고, Discourse는 영구 링크가 아니라 Ghost의 제목에서 슬러그를 가져오기 때문에, 기존 제목으로 이미 토픽이 생성된 상태에서 게시물 제목을 변경하면 링크가 깨집니다. 더 나은 접근 방식이 있을까요? 이 작업을 위해 사용할 수 있는 Discourse API가 있을까요?

감사합니다.

---

<div class="post-metadata">

### Author: ![Amir\_Sofyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amir_sofyan/32/151651_2.png) [@Amir\_Sofyan](https://meta.discourse.org/u/Amir_Sofyan)
#### Post date: [7월 27, 2020, 5:00오전 UTC](https://meta.discourse.org/t/getting-discourse-url-on-embedded-comments/158888/2 "2020-07-27T05:00:40Z")

</div>

아니면 블로그 게시물에 연결된 주제 슬러그를 정의할 수도 있나요?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [7월 28, 2020, 5:33오후 UTC](https://meta.discourse.org/t/getting-discourse-url-on-embedded-comments/158888/3 "2020-07-28T17:33:44Z")

</div>

이 가이드를 따르고 계신가요?

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

이렇게 하면 discourse에서 자동으로 해당 주제가 생성됩니다.
