# Notify user of a broken URL in their Topic

**URL:** <https://meta.discourse.org/t/notify-user-of-a-broken-url-in-their-topic/270494>\
**Category:** Feature\
**Created:** [July 4, 2023, 9:44am UTC](https://meta.discourse.org/t/notify-user-of-a-broken-url-in-their-topic/270494 "2023-07-04T09:44:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)\
**Post date:** [July 4, 2023, 2:04pm UTC](https://meta.discourse.org/t/notify-user-of-a-broken-url-in-their-topic/270494/3 "2023-07-04T14:04:41Z")

</div>

Thanks for providing these. I had a search earlier but must have been using goofy search terms.

This topic looked most interesting.

> [@How Check and Fix Broken Links?](https://meta.discourse.org/t/how-check-and-fix-broken-links/255338/):
>
> Is there any possible way to identify broken links and fix it at the same time?

In particular your own proposal:

> [@How Check and Fix Broken Links?](https://meta.discourse.org/t/how-check-and-fix-broken-links/255338/12):
>
> The first solution that comes to my mind would be a rail script that iterates through post contents, find links, requests them, checks the status code and does whatever you need. Delete them, replace them (such actions would require a rebake), log them…

I’m curious if there is already an internal table of urls. This seems to suggest their might be:

> [@Find and fix broken links](https://meta.discourse.org/t/find-and-fix-broken-links/120858/4):
>
> 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)

---

_[View the full topic](https://meta.discourse.org/t/notify-user-of-a-broken-url-in-their-topic/270494)._
