# Automatically replace forum URLs in posts with topic title

**URL:** https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407
**Category:** Feature
**Created:** [March 16, 2015, 7:32pm UTC](https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407 "2015-03-16T19:32:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [March 16, 2015, 7:32pm UTC](https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407/1 "2015-03-16T19:32:06Z")

</div>

Just like on StackExchange, it would be nice to automatically replace bare URLs pointing to other threads in the forum, with the topic title hyperlinked to that URL:

- [Sortable Admin pages - #23](https://meta.discourse.org/t/sortable-admin-pages/20721/23)

The URL above could be replaced with “[Sortable Admin pages](https://meta.discourse.org/t/sortable-admin-pages/20721/23)” (ideally, with the relative path to the topic, so the link will survive domain name changes).

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [March 16, 2015, 8:24pm UTC](https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407/2 "2015-03-16T20:24:20Z")

</div>

If you post the URL on a line by itself, it will be picked up by a Onebox like this:

[https://meta.discourse.org/t/sortable-admin-pages/20721/23](https://meta.discourse.org/t/sortable-admin-pages/20721/23)

Rewriting inline URLs’ titles sounds nice on paper but could be risky. The forum would have to be able to understand when users are refering to the linked topic and when they’re talking about _the address itself_, something which, at least here on Meta, happens surprisingly often…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 16, 2015, 9:21pm UTC](https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407/3 "2015-03-16T21:21:01Z")

</div>

Covered here already:

[https://meta.discourse.org/t/mini-onebox-support/5838](https://meta.discourse.org/t/mini-onebox-support/5838)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 16, 2015, 9:21pm UTC](https://meta.discourse.org/t/automatically-replace-forum-urls-in-posts-with-topic-title/26407/4 "2015-03-16T21:21:06Z")

</div>


