# Tricky question regarding Discourse permalinks

**URL:** https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595
**Category:** Support
**Tags:** permalinks
**Created:** [March 24, 2025, 2:28pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595 "2025-03-24T14:28:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [March 24, 2025, 2:28pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/1 "2025-03-24T14:28:22Z")

</div>

I have a list of external URLs that I want to forward to my community. The list will be umpteen and ever-growing, but a small subset is, say:

- security/advisories/ADV-2024-003
- security/advisories/ADV-2022-002
- security/advisories/ADV-2025-005

How can I create permalinks that can account for any case? e.g. if they navigate to security/advisories/adv-2025-005, it would still take them to that topic?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 24, 2025, 3:41pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/3 "2025-03-24T15:41:38Z")

</div>

I could not find any decent tricks, but there is a possible way to use the `Permalink normalizations` setting.

You could do, for example:

 ![This image shows an example of a monitored entry/export request involving game stats, specifically normalizations and permalinks. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/e/0/0e01f52910c1eafddacf248e85f9e78546992967.png)

`/security\/advisories\/[aA][dD][vV]-(\d+-\d+)/s-adv-\1`

It transforms  
`security/advisories/ADV-2024-003`  
`security/advisories/adv-2024-003`  
`security/advisories/aDv-2024-003`  
…  
 → `s-adv-2024-003`

Then, you create a redirect with it:

![image](https://global.discourse-cdn.com/meta/original/4X/b/4/2/b42277716038ebfb6f9cf8927a0cb62bb51ee9e8.png)

Would it work for you?

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [March 24, 2025, 3:44pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/4 "2025-03-24T15:44:38Z")

</div>

> [@Arkshine](#):
>
> `/security\/advisories\/[aA][dD][vV]-(\d+-\d+)/s-adv-\1`

I would still want the permalink to ultimately be: `security/advisories/{advisory`, I wouldn’t want it to be shorter.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 24, 2025, 3:48pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/5 "2025-03-24T15:48:55Z")

</div>

If you prefer, you can write the following, it gives the same result.

You can use:  
`/security\/advisories\/[aA][dD][vV]-(\d+-\d+)/security/advisories/adv-\1`

Then:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/b/1/7b198b2c71a50ea1dc00e5c2678ce8ac79cecce1.png)

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [March 24, 2025, 6:08pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/6 "2025-03-24T18:08:32Z")

</div>

This worked perfectly, so long as my permalinks start out lowercase like this. Thank you!

---

<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: [April 23, 2025, 6:09pm UTC](https://meta.discourse.org/t/tricky-question-regarding-discourse-permalinks/358595/7 "2025-04-23T18:09:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
