# Oneboxing changes link URL?

**URL:** <https://meta.discourse.org/t/oneboxing-changes-link-url/182545>\
**Category:** Product Support\
**Created:** [March 8, 2021, 8:10pm UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545 "2021-03-08T20:10:59Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

The discussion revolves around an issue where oneboxing alters the URL parameters, causing incorrect results on the MorphMarket website. [Tom_Eagle](/t/-/182545/1) reports that the original URL `https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel%2CHet+Clown&s2=Pastel%2CHet+Clown` is modified to `https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel,Het%2BClown&s2=Pastel,Het%2BClown` when oneboxed, changing `%2C` to `,` and `+` to `%2B`. This leads to different genetic calculator outputs, as shown in [images](/t/-/182545/5). [Richie](/t/-/182545/2) initially questions the difference, but [Tom_Eagle](/t/-/182545/3) clarifies the impact. [codinghorror](/t/-/182545/4) asks why it matters if the URLs function, but [Tom_Eagle](/t/-/182545/5) emphasizes the functional difference. [david](/t/-/182545/9) notes the URLs may no longer be oneboxable due to missing OpenGraph tags and references a past fix in Discourse's codebase.

<div class="post-metadata">

**Author:** ![Tom\_Eagle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_eagle/32/200481_2.png) [@Tom\_Eagle](https://meta.discourse.org/u/Tom_Eagle)\
**Post date:** [March 8, 2021, 8:10pm UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/1 "2021-03-08T20:10:59Z")

</div>

Hi everyone,

Over on our forum we have a issue where when a URL is oneboxed it changes the actual URL itself.

As a example:

This is a link to our website:  
[https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel%2CHet+Clown&s2=Pastel%2CHet+Clown](https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel%2CHet+Clown&s2=Pastel%2CHet+Clown)

But this is what shows when oneboxed:  
[https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel,Het%2BClown&s2=Pastel,Het%2BClown](https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel,Het%2BClown&s2=Pastel,Het%2BClown)

With:

- “%2C” being changed to “,”.
- “+” Being changed to “%2B”

Which gives users the wrong results on our site.

Is there a way to stop this happening or a workaround?

---

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [March 8, 2021, 8:19pm UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/2 "2021-03-08T20:19:04Z")

</div>

Those links are both the same:

`https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel,Het%2BClown&s2=Pastel,Het%2BClown`

Can you wrap/backtick them so we can see them as you intended?

---

<div class="post-metadata">

**Author:** ![Tom\_Eagle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_eagle/32/200481_2.png) [@Tom\_Eagle](https://meta.discourse.org/u/Tom_Eagle)\
**Post date:** [March 8, 2021, 8:58pm UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/3 "2021-03-08T20:58:56Z")

</div>

Sorry, my bad 🙄

This is what it should look like:

```
https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel%2CHet+Clown&s2=Pastel%2CHet+Clown

```

This is what happens when oneboxed:

```
https://www.morphmarket.com/c/reptiles/pythons/ball-pythons/genetic-calculator/?s1=Pastel,Het%2BClown&s2=Pastel,Het%2BClown

```

---

<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:** [March 9, 2021, 9:30am UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/4 "2021-03-09T09:30:14Z")

</div>

If the url is functional in either case, why does it matter?

---

<div class="post-metadata">

**Author:** ![Tom\_Eagle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_eagle/32/200481_2.png) [@Tom\_Eagle](https://meta.discourse.org/u/Tom_Eagle)\
**Post date:** [March 9, 2021, 11:25am UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/5 "2021-03-09T11:25:27Z")

</div>

Because they lead to different results.

Here is what should be shown through the link:

 ![SmartSelect_20210309-112213_Chrome](https://global.discourse-cdn.com/meta/original/3X/2/a/2a4864bf93f54b23b15d8cf9d53d6cf9261bb008.jpeg)

Not this:

 ![SmartSelect_20210309-112241_Chrome](https://global.discourse-cdn.com/meta/original/3X/e/6/e670b6fb8818406548ed6e1edb9ae1859340cf8f.jpeg)

This makes a huge difference when trying to calculate genetics correctly.

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [July 24, 2023, 11:59am UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/9 "2023-07-24T11:59:58Z")

</div>

It looks like the URLs in the OP are no longer oneboxable (no opengraph tags on the site). But just noting for the record, this issue should have been resolved by

[https://github.com/discourse/discourse/commit/f0a02525267e88986581be1f87c9e5608b9a4377](https://github.com/discourse/discourse/commit/f0a02525267e88986581be1f87c9e5608b9a4377)

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [August 23, 2023, 12:00pm UTC](https://meta.discourse.org/t/oneboxing-changes-link-url/182545/10 "2023-08-23T12:00:23Z")

</div>

Closed on August 23, 2023, 12:00pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
