Closed Bug 622693 Opened 15 years ago Closed 14 years ago

Add backend logic for maddons and mobile pages

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

defect

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
Blocks: 623235
Blocks: 625916
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.
Depends on: 626871
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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.