Compatibility of Mozilla Discourse with the new look addons.mozilla.org (AMO)

Test:

https://addons.mozilla.org/addon/febe/


If I recall correctly: with the classic look, URLs for add-ons – including abbreviations such as the one above, https://addons.mozilla.org/addon/febe/ – resulted in embedded previews in Mozilla Discourse.

An alternative test, although I doubt that this instance of Discourse is (or should be) prepared to embed content from this domain:

  • https://addons-dev.allizom.org/addon/febe/

https://addons-dev.allizom.org/addon/febe/

Third test, development domain, without the abbreviation:

  • https://addons-dev.allizom.org/en-GB/firefox/addon/febe/

https://addons-dev.allizom.org/en-GB/firefox/addon/febe/

Fourth and final, production, without the abbreviation:

  • https://addons.mozilla.org/en-GB/firefox/addon/febe/

https://addons.mozilla.org/en-GB/firefox/addon/febe/


@jorgev just FYI :arrow_up: – I don’t imagine that there’s anything for you folks to do on the AMO side.

Cross reference

Yep.

Via https://archive.is/0DLJ7 a snapshot of the opening post (above) I found:

Testing the URL in that case:

  • https://addons.mozilla.org/en-US/firefox/addon/tab-center-redux/

https://addons.mozilla.org/en-US/firefox/addon/tab-center-redux/


There’s also something like an embed at post 464 under https://archive.is/p32Hj#selection-2254.3-2398.1 but generally (not specific to this instance) Discourse does not lend itself to archive.is captures of long topics so I reckon, that example is negligible.

Yeah, I don’t know what Discourse uses to auto-generate the preview. If there’s some meta tag we can add for this or something else, I’d be good to know what it is.

1 Like

It uses onebox, which relies on oEmbed or OpenGraph.

As an example of a link which does onebox:

https://air.mozilla.org/mozilla-weekly-project-meeting-20171120/

You can see the Open Graph data here: http://iframely.com/debug?uri=https%3A%2F%2Fair.mozilla.org%2Fmozilla-weekly-project-meeting-20171120%2F

And them same for an AMO link which doesn’t onebox: http://iframely.com/debug?uri=https%3A%2F%2Faddons.mozilla.org%2Faddon%2Ffebe%2F

1 Like