Oneboxing changes link URL?

AI-generated summary

The discussion revolves around an issue where oneboxing alters the URL parameters, causing incorrect results on the MorphMarket website. Tom_Eagle 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. Richie initially questions the difference, but Tom_Eagle clarifies the impact. codinghorror asks why it matters if the URLs function, but Tom_Eagle emphasizes the functional difference. david notes the URLs may no longer be oneboxable due to missing OpenGraph tags and references a past fix in Discourse’s codebase.

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

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

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?

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?

Sorry, my bad :roll_eyes:

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

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

Because they lead to different results.

Here is what should be shown through the link:

Not this:

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

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