# Links onebox differently if end in /

**URL:** https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499
**Category:** UX
**Created:** [2017 年 7 月 20 日午前 10:22 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499 "2017-07-20T10:22:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Silvanus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silvanus/32/62831_2.png) [@Silvanus](https://meta.discourse.org/u/Silvanus)
#### Post date: [2017 年 7 月 20 日午前 10:22 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499/1 "2017-07-20T10:22:50Z")

</div>

I just noticed that the links to discourse threads are oneboxed differently if there’s a `/` in the end.

See links here:

`https://meta.discourse.org/t/clear-empty-delete-database-for-another-import-development/66498`

> [@Clear, empty, delete database for another import (development)](https://meta.discourse.org/t/clear-empty-delete-database-for-another-import-development/66498):
>
> So, I managed to import my age old forum into Discourse, and I madea Discourse backup of it. Later I will put it down in a production environment and make the static archive. Right now I’m on a developoment build. But now I’m running into a problem: I would like to clear out the database and insert my second forum into Discourse, so that the old forum is removed. I tried a few threads below, but they didn’t give me the answer I need: [https://meta.discourse.org/t/is-there-a-way-to-clear-out-my-…](https://meta.discourse.org/t/is-there-a-way-to-clear-out-my-database/23813/)

`https://meta.discourse.org/t/clear-empty-delete-database-for-another-import-development/66498/`

> [@Clear, empty, delete database for another import (development)](https://meta.discourse.org/t/clear-empty-delete-database-for-another-import-development/66498/):
>
> So, I managed to import my age old forum into Discourse, and I madea Discourse backup of it. Later I will put it down in a production environment and make the static archive. Right now I’m on a developoment build. But now I’m running into a problem: I would like to clear out the database and insert my second forum into Discourse, so that the old forum is removed. I tried a few threads below, but they didn’t give me the answer I need: [https://meta.discourse.org/t/is-there-a-way-to-clear-out-my-…](https://meta.discourse.org/t/is-there-a-way-to-clear-out-my-database/23813/)

Namely, that the last one, with the trailing slash, adds the Discourse logo, and the first one does not.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017 年 7 月 20 日午前 11:25 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499/3 "2017-07-20T11:25:52Z")

</div>

> [@Silvanus](#):
>
> Namely, that the last one, with the trailing slash, adds the Discourse logo, and the first one does not

It looks like the non slash generates an internal onebox while the slash link generates an external onebox.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 10 月 31 日午後 11:16 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499/4 "2017-10-31T23:16:24Z")

</div>

Can you add this to your list @techAPJ or @vinothkannans

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2017 年 11 月 1 日午後 9:23 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499/6 "2017-11-01T21:23:03Z")

</div>

[PR](https://github.com/discourse/discourse/pull/5282) created with the FIX.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017 年 11 月 3 日午前 1:00 UTC](https://meta.discourse.org/t/links-onebox-differently-if-end-in/66499/7 "2017-11-03T01:00:10Z")

</div>

This topic was automatically closed after 26 hours. New replies are no longer allowed.
