# Find and fix broken links

**URL:** https://meta.discourse.org/t/find-and-fix-broken-links/120858
**Category:** Support
**Created:** [6월 20, 2019, 12:54오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858 "2019-06-20T00:54:55Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Mirko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mirko/32/147237_2.png) [@Mirko](https://meta.discourse.org/u/Mirko)
#### Post date: [6월 20, 2019, 12:54오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/1 "2019-06-20T00:54:55Z")

</div>

Would it be possible to remove all dead links from the forum?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [6월 20, 2019, 1:14오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/2 "2019-06-20T01:14:36Z")

</div>

What’s your criteria for a broken link?

Some CMS return 404’s when the current user doesn’t have access to the page, would that be considered broken?

Is it better users see the old broken link to help identify the new source? What would you show in their place?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [6월 20, 2019, 4:26오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/3 "2019-06-20T04:26:18Z")

</div>

Interest question. In the catalogs of sites (clone Dmoz) all existing links are checked for errors. In Discourse, the links are in the body of the document ( They are not stored in a separate table?). I think that it is possible to create a link parser from the Discourse database in order to check their status using a third-party plugin. And in the countdown, display the status of “broken” links and the number of the post.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [6월 20, 2019, 5:27오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/4 "2019-06-20T05:27:17Z")

</div>

> [@Stranik](#):
>
> stored in a separate table

Thinking of the topic\_links table?

[discourse/app/models/topic\_link.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/models/topic_link.rb)

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [6월 20, 2019, 5:31오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/5 "2019-06-20T05:31:09Z")

</div>

If in a separate table (thanks, I will study), then, apparently, the task is simplified. I’ll free myself a bit and think about how to do it better. The goal is interesting, especially for communities where there are external links in many posts.

**Added:** an additional opportunity to work with links. In our case, we want to extract all the links, sort them, check the status of the links, “link weights” and add them to our catalog. Where catalog moderators could describe interesting resources.

 ![nasua](https://global.discourse-cdn.com/meta/original/3X/9/d/9d0adb83cd71ef8434f3cb8947f5c08ed83edb67.jpeg)

So it is possible (in a specific case) to link Discourse and the base of sites in the form of a catalog.

---

<div class="post-metadata">

### Author: ![Mirko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mirko/32/147237_2.png) [@Mirko](https://meta.discourse.org/u/Mirko)
#### Post date: [6월 25, 2019, 9:24오전 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/6 "2019-06-25T09:24:14Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/7/d/7db4e1b7bdc0002e58c1b5958ec1a24855db6446.png)

I get the message of errors mostly broken links to amazon s3. I would remove them manually but if I search forum by link it doesn’t show.

---

<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: [12월 11, 2022, 5:48오후 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/7 "2022-12-11T17:48:15Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [12월 11, 2022, 7:13오후 UTC](https://meta.discourse.org/t/find-and-fix-broken-links/120858/8 "2022-12-11T19:13:30Z")

</div>


