Ability to link to latest version of an add-on

VERIFIED FIXED in 3.4.5

Status

addons.mozilla.org Graveyard
Public Pages
--
enhancement
VERIFIED FIXED
10 years ago
2 years ago

People

(Reporter: fligtar, Assigned: fligtar)

Tracking

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Assignee)

Description

10 years ago
There should be a way to link to the latest file of an add-on so that external sites don't have to change the link with every update.

For add-ons that have different files for different platforms, that url might take a platform id.
(Assignee)

Updated

10 years ago
Duplicate of this bug: 398366
(Assignee)

Updated

10 years ago
Duplicate of this bug: 398367

Comment 3

10 years ago
May I ask that "permalink" and "version" be added to the summary or keywords ?

Comment 4

10 years ago
This unique link could use unique numbers that add-on already have like "1865" or {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} for Adblock.

https://addons.mozilla.org/fr/firefox/addon/1865
https://addons.mozilla.org/fr/firefox/addons/versions/1865

It would be useful having some unique url to do some "Mass Install" because you'll be sure to install the latest version of an add-on and not having to update after the 1st install.

Updated

10 years ago
Summary: Ability to link to latest file of an add-on → Ability to link to latest version of an add-on
(Assignee)

Updated

10 years ago
Blocks: 433408
Target Milestone: --- → 3.4.4
(Assignee)

Updated

10 years ago
Blocks: 437158

Updated

10 years ago
Target Milestone: 3.4.4 → 3.4.5

Updated

10 years ago
Assignee: nobody → fligtar
(Assignee)

Updated

10 years ago
No longer blocks: 437158
(Assignee)

Comment 5

10 years ago
Created attachment 325863 [details] [diff] [review]
patch, v1

I'll file a separate bug for a place in the Dev CP that exposes these URLs to developers.
Attachment #325863 - Flags: review?(fwenzel)
(Assignee)

Comment 6

10 years ago
Created attachment 325865 [details] [diff] [review]
patch, v2

Fixes a small problem.
Attachment #325863 - Attachment is obsolete: true
Attachment #325865 - Flags: review?(fwenzel)
Attachment #325863 - Flags: review?(fwenzel)

Comment 7

10 years ago
Comment on attachment 325865 [details] [diff] [review]
patch, v2

I think you need to check a file status, unless you accidentally want to serve people experimental and/or deactivated files too.
Attachment #325865 - Flags: review?(fwenzel) → review-
(Assignee)

Comment 8

10 years ago
Created attachment 326052 [details] [diff] [review]
patch, v3

I was assuming the file() method would check the status, but I guess it makes sense to only return the latest public file.
Attachment #325865 - Attachment is obsolete: true
Attachment #326052 - Flags: review?(fwenzel)

Comment 9

10 years ago
Comment on attachment 326052 [details] [diff] [review]
patch, v3

That works very well.
Attachment #326052 - Flags: review?(fwenzel) → review+
(Assignee)

Comment 10

9 years ago
Checked in, r16317.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Keywords: push-needed
Resolution: --- → FIXED

Comment 11

9 years ago
All Platforms available example:
- https://preview.addons.mozilla.org/downloads/latest/1865 - displays install dialog
- https://preview.addons.mozilla.org/downloads/latest/1865/type:attachment - shows the download dialog

Single Platform addons examples:
- https://preview.addons.mozilla.org/downloads/latest/35/platform:5 - shows download dialog
- https://preview.addons.mozilla.org/downloads/latest/35 - shows download dialog

Multi-Platforma addons examples:
- https://preview.addons.mozilla.org/en-US/firefox/downloads/latest/3234/platform:2 - working fine
- https://preview.addons.mozilla.org/en-US/firefox/downloads/latest/3234/platform:3 - working fine
- https://preview.addons.mozilla.org/en-US/firefox/downloads/latest/3234/platform:5 - working fine

platform=2 means Linux
platform=3 means Mac
platform=5 means Windows
Status: RESOLVED → VERIFIED

Comment 12

9 years ago
Hi!

Thanks for fixing this, but I still have some problems…

It doesn't seem to work with some extension like:
-Forecastfox l10n https://preview.addons.mozilla.org/en-US/firefox/addon/2024
https://preview.addons.mozilla.org/downloads/latest/2024/

-gTranslate https://preview.addons.mozilla.org/en-US/firefox/addon/918
https://preview.addons.mozilla.org/downloads/latest/918/

-United States English Dictionary https://preview.addons.mozilla.org/en-US/firefox/addon/3497
https://preview.addons.mozilla.org/downloads/latest/3497/

-CustomizeGoogle https://preview.addons.mozilla.org/en-US/firefox/addon/743/
https://preview.addons.mozilla.org/downloads/latest/743/

-WebDeveloper https://preview.addons.mozilla.org/en-US/firefox/addon/60/
https://preview.addons.mozilla.org/downloads/latest/60/

-Flashgot https://preview.addons.mozilla.org/en-US/firefox/addon/220/
https://preview.addons.mozilla.org/downloads/latest/220/

And maybe others.

I have a "Add-on not found!" error, is it the same for you? Where does the problem comes from?

Let me know.
(Assignee)

Comment 13

9 years ago
I think that's just a problem with the files that preview is using. If you use addons.mozilla.org instead of preview.addons.mozilla.org for those URLs, they work.

Comment 14

9 years ago
You're right, removing preview. solved the problem. Thanks a lot!
(Assignee)

Comment 15

9 years ago
3.4.5 was pushed on Friday.
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.