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 Compatibility of Mozilla Discourse with the new look addons.mozilla.org (AMO) - Meta / Help - Mozilla Discourse 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 [Support] uBlock Origin - Add-ons / Add-on Support - Mozilla Discourse 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.

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: Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed

And them same for an AMO link which doesn’t onebox: Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed