# Is it possible to dynamically link to topic?

**URL:** <https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262>\
**Category:** Knowledge Hub\
**Created:** [August 14, 2023, 10:02pm UTC](https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262 "2023-08-14T22:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JKinderman](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@JKinderman](https://community.egain.com/u/JKinderman)\
**Post date:** [August 14, 2023, 10:02pm UTC](https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262/1 "2023-08-14T22:02:22Z")

</div>

In Authoring console there is no option to link to Topic dynamically. Customer has multiple portals using the same articles and wants to add a link to topic in these articles that would stay in the same portal. The Link Article functionality would suffice if it could link to topics.

---

<div class="post-metadata">

**Author:** ![MarkHerman](https://sea1.discourse-cdn.com/flex019/user_avatar/community.egain.com/markherman/32/392_2.png) [@MarkHerman](https://community.egain.com/u/MarkHerman)\
**Post date:** [August 15, 2023, 2:32pm UTC](https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262/2 "2023-08-15T14:32:03Z")

</div>

Yes. It is possible to link dynamically to a Topic. You need to create an HTML “a href” tag in the content. You also need to know the ID of the Topic, which is available in the Authoring Console. In the “a href” tag, make it look like the following:

```auto
<a href="../../topic/202200000001038">Link to Topic</a>

```

Notice the `"../.."`. That will put the “/topic” at the right level of the current URL.

---

<div class="post-metadata">

**Author:** ![MHarris](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MHarris](https://community.egain.com/u/MHarris)\
**Post date:** [November 15, 2024, 10:48pm UTC](https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262/3 "2024-11-15T22:48:41Z")

</div>

Does this method of linking to a topic still work? I tried it in a test environment, and it was deleting the link whenever I put it into the source code.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/egain/original/1X/fd51694a4b0709a2e9912e02224fff808366a3f0.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/egain/original/1X/e06468266bfd5d51f689e7128a280d86d3fdabdd.png)

---

<div class="post-metadata">

**Author:** ![MarkHerman](https://sea1.discourse-cdn.com/flex019/user_avatar/community.egain.com/markherman/32/392_2.png) [@MarkHerman](https://community.egain.com/u/MarkHerman)\
**Post date:** [November 26, 2024, 2:57pm UTC](https://community.egain.com/t/is-it-possible-to-dynamically-link-to-topic/1262/4 "2024-11-26T14:57:31Z")

</div>

Yes, it should still work. I’ve tried it with my system, and the link stays. I’ve also looked at the Rich Text Content Policy (RTCP), and that URL should work with the OOTB RTCP settings. Have you modified the RTCP?
