# Onebox: rewrite Github links to specific commit?

**URL:** <https://meta.discourse.org/t/onebox-rewrite-github-links-to-specific-commit/26090>\
**Category:** Feature\
**Created:** [March 7, 2015, 9:07am UTC](https://meta.discourse.org/t/onebox-rewrite-github-links-to-specific-commit/26090 "2015-03-07T09:07:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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 7, 2015, 9:07am UTC](https://meta.discourse.org/t/onebox-rewrite-github-links-to-specific-commit/26090/1 "2015-03-07T09:07:12Z")

</div>

In this old topic from two years ago ([Only 21 “likes” allowed in 24 hours?](https://meta.discourse.org/t/only-21-likes-allowed-in-24-hours/798/30)), a post includes a link to Github, citing a specific line in one of Discourse’s source files.

> [@craftsman](#):
>
> Here is the source:  
> [discourse/app/models/site\_setting.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/models/site_setting.rb#L73)

However, time has moved on and what was once helpful is now quite confusing as the lines shown are not related to the topic at all.

Should onebox’d Github links be rewritten (on submitting a post or asynchronously, similar to when linked images are downloaded and lightboxed), so that the link points to a specific commit instead of a movable target?

---

_[View the full topic](https://meta.discourse.org/t/onebox-rewrite-github-links-to-specific-commit/26090)._
