# Defining links in a category where we can configure URL as parameter/config

**URL:** https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671
**Category:** Support
**Created:** [27 בספטמבר,‏ 2019,‏ 3:42pm UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671 "2019-09-27T15:42:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alank](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@alank](https://meta.discourse.org/u/alank)
#### Post date: [27 בספטמבר,‏ 2019,‏ 3:42pm UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671/1 "2019-09-27T15:42:10Z")

</div>

If I insert via the API a URL into a Category description such as [http:something1/project…] but in the future I might want [http:something2/project…] , that is that the referencing url could change or not be the same in future environments, is there a config or option in Discourse to make links more like [{base\_url}/project…], like a way to configure `base_url` as an environment variable that is replaced in all URLs?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 בספטמבר,‏ 2019,‏ 4:21pm UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671/2 "2019-09-27T16:21:11Z")

</div>

I think you can do it with a theme component. There are some examples of how to replace text with a theme component. It would do it in all posts, not just category descriptions, but that’d probably be OK.

EDIT: Actually `/admin/logs/watched_words/action/censor` might do the job for you. You can have a word replaced with another one. I think that it’d work in your links, but haven’t tested it.

---

<div class="post-metadata">

### Author: ![alank](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@alank](https://meta.discourse.org/u/alank)
#### Post date: [27 בספטמבר,‏ 2019,‏ 4:40pm UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671/3 "2019-09-27T16:40:50Z")

</div>

@pfaffman that is very interesting so for example I could have `project_url` in say [project\_url/home\_page/…] replaced to `www.projects1` I’ll give it a shot and see if word replacement woerks in [urls][descriptions] or maybe there is another way of defining URLs, just going by base Meta Description format.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [17 במאי,‏ 2023,‏ 8:59pm UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671/4 "2023-05-17T20:59:58Z")

</div>



---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [18 במאי,‏ 2023,‏ 2:53am UTC](https://meta.discourse.org/t/defining-links-in-a-category-where-we-can-configure-url-as-parameter-config/129671/5 "2023-05-18T02:53:37Z")

</div>


