[preview.amo] Let zamboni serve /:locale/:app/browse/type:1(?:/cat:[^/]+)/?$

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
RESOLVED FIXED
8 years ago
4 years ago

People

(Reporter: jbalogh, Assigned: oremj)

Tracking

Details

(URL)

(Reporter)

Description

8 years ago
Test page: https://preview.addons.mozilla.org/en-US/firefox/browse/type:1/cat:72 should go to https://preview.addons.mozilla.org/en-US/firefox/extensions/alerts-updates.

Note: we only want to handle type:1 and type:2 right now.

Thanks!

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Reporter)

Comment 1

8 years ago
We need to keep serving /browse/type/cat/format:rss from remora, so this needs to be stricter.  And we're only going to serve type:1. I think this is what we want:

/:locale/:app/browse/type:1(?:/cat:[^/]+)/?$


https://addons.mozilla.org/en-US/firefox/browse/type:1/cat:all/format:rss?sort=updated
Summary: [preview.amo] Let zamboni serve /:locale/:app/browse/type:[12].* → [preview.amo] Let zamboni serve /:locale/:app/browse/type:1(?:/cat:[^/]+)/?$
(Assignee)

Comment 2

8 years ago
Added:

RewriteRule ^((?:(?:/\w{2,3}(?:-\w{2})?)(?:/(?:firefox|seamonkey|thunderbird|mobile|sunbird))?)?/type:1/cat:[^/]+/?)$ /z$1 [PT]
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

8 years ago
(In reply to comment #2)
> Added:
> 
> RewriteRule
> ^((?:(?:/\w{2,3}(?:-\w{2})?)(?:/(?:firefox|seamonkey|thunderbird|mobile|sunbird))?)?/type:1/cat:[^/]+/?)$
> /z$1 [PT]

You're missing /browse/ between app and type.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 4

8 years ago
+    RewriteRule ^((?:(?:/\w{2,3}(?:-\w{2})?)(?:/(?:firefox|seamonkey|thunderbird|mobile|sunbird))?)?/browse/type:1/cat:[^/]+/?)$ /z$1 [PT]
Status: REOPENED → RESOLVED
Last Resolved: 8 years ago8 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.