mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

New front-end doesn't use latest version permalink #2035

Open jvillalobos opened 6 years ago

jvillalobos commented 6 years ago

In the new front-end, we're pointing directly to the XPI file. For example, for this add-on, the Add to Firefox button points to: https://addons.mozilla.org/firefox/downloads/file/807838/giftibly_gift_assistant-1.0.28-an+fx.xpi?src=dp-btn-primary

In the old front-end, the button points to: https://addons.mozilla.org/firefox/downloads/latest/giftibly-gift-assistant/addon-895956-latest.xpi

This URL is useful for developers to share or use on their own websites, without having to update it every time they upload a new version.

┆Issue is synchronized with this Jira Task

tofumatt commented 6 years ago

It doesn't look like that URL is surfaced by anything in the API... it would be helpful to know what the URL show look like to create it. It seems like it's /${clientApp}/downloads/latest/${addon.slug}/addon-${addon.id}-latest.xpi but I would definitely rather the API surface that link as it's the source of truth and the URL would be useful to other API consumers as well.

I've filed: https://github.com/mozilla/addons/issues/1768

bobsilverberg commented 5 years ago

@jvillalobos How important is fixing this in terms of allowing us to shut down the legacy site? Does the priority of https://github.com/mozilla/addons/issues/1768 need to be increased?

jvillalobos commented 5 years ago

This isn't a blocker for shutting down the legacy site.

KevinMind commented 4 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDFRNT-129