Closed
Bug 622693
Opened 14 years ago
Closed 13 years ago
Add backend logic for maddons and mobile pages
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect, P1)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
FIXED
5.12.7
People
(Reporter: clouserw, Assigned: jbalogh)
References
Details
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
Assignee | ||
Comment 1•13 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 | ||
Comment 2•13 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
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•13 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)
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•