# 상대 경로 헤딩 링크의 Slack 연동 문제

**URL:** <https://meta.discourse.org/t/slack-integration-issue-with-relative-heading-links/276314>\
**Category:** Bug\
**Tags:** pr-welcome, chat-integration\
**Created:** [4월 8, 2021, 7:53오후 UTC](https://meta.discourse.org/t/slack-integration-issue-with-relative-heading-links/276314 "2021-04-08T19:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [4월 9, 2021, 10:32오후 UTC](https://meta.discourse.org/t/slack-integration-issue-with-relative-heading-links/276314/2 "2021-04-09T22:32:03Z")

</div>

> [@debryc](#):
>
> DiscoTOC와 Slack 통합 간에 이상한 상호작용을 발견했습니다. 기본적으로 헤더 링크가 올바르게 게시되지 않습니다.

이는 제목 링크에 주제(topic) 경로가 포함되지 않기 때문입니다. 예를 들어 `<a name="overview" href="#overview">`와 같습니다. 채팅 통합(Chat Integration) 플러그인은 게시물 내 모든 링크 앞에 포럼의 루트 URL을 붙여 상대 링크를 절대 링크로 변환하려고 하지만, 주제 경로가 누락되어 있어 헤더 링크에는 이 방식이 적용되지 않습니다.

가능한 해결책은 TOC의 `href` 요소에 주제 경로를 추가하는 것입니다. 예를 들어 `<a name="overview" href="#overview">`를 설정하는 대신, `href` 요소를 `/t/your-topic-slug/1234#overview"`과 같은 형태로 설정할 수 있습니다.

---

_[View the full topic](https://meta.discourse.org/t/slack-integration-issue-with-relative-heading-links/276314)._
