Add backend logic for maddons and mobile pages

RESOLVED FIXED in 5.12.7

Status

addons.mozilla.org Graveyard
Public Pages
P1
normal
RESOLVED FIXED
7 years ago
2 years ago

People

(Reporter: clouserw, Assigned: jbalogh)

Tracking

unspecified
5.12.7
Dependency tree / graph

Details

(Reporter)

Description

7 years ago
We're going to have m.addons.mozilla.org in a bit (bug 622586) and we need to support that in the app.  This bug is for:

- Adding a MOBILE_DOMAIN or similar to settings that defaults to m.DOMAIN
- Adding at least 1 template with 'testo' and 'view full site' on it so we can see how this all works
- If we don't have a mobile version of a page, we redirect to the requested page on DOMAIN, always
- If someone clicks 'view full site' a cookie is sent to them and they are redirected
- If that cookie is seen on m.amo we always redirect to the same page on DOMAIN
(Reporter)

Updated

7 years ago
Blocks: 623235
(Reporter)

Updated

7 years ago
Blocks: 625916
(Assignee)

Comment 1

7 years ago
Based on data from http://detectmobilebrowser.com/ and other sketchy sources, I'm going to look for this in the User-Agent string:

android|fennec|iemobile|iphone|opera (mini|mobi)

People will be able to click "show me mobile" if we don't detect their browser, so I'm not worried about covering every single browser ever.
(Assignee)

Updated

7 years ago
Depends on: 626871
(Assignee)

Comment 2

7 years ago
Mobile detection: http://github.com/jbalogh/zamboni/commit/f1f7283 (going to zeus in bug 626871)
X-Mobile: http://github.com/jbalogh/zamboni/commit/ddeccf7
Merge: http://github.com/jbalogh/zamboni/commit/84db383
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

7 years ago
Here's how you trigger mobile:

* Have one of the words from comment 1 in your User-Agent (I use a Fennec UA).
** AND: If you have a cookie named mamo, it should not be set to "off".
OR
* Have a cookie named mamo with the value "on".

This is only supposed to work on mobile-enabled pages (right now only /). (bug 628445)
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.