This module is very handy, and does exactly what I need 90% of the time.

There are a few instances where I have needed it to ignore the mobile status based upon a given path, and display the page as is for that page only. This requirement makes using the nomobi option impossible, as it sets the cookie and prevents the redirect if the user navigates to a page that should redirect.

Comments

cap60552’s picture

StatusFileSize
new2.73 KB

I have created a patch to add this functionality.

jstamper’s picture

StatusFileSize
new585 bytes

I needed something like this as well but I needed to be able to do multiple paths for QR codes. I've went a slightly different way with this that's very light. I just have the code check for for mobi_bypass=true and it exits out of the function with altering any other state.

I've included the patch for anyone who wants it.

adamfudge7’s picture

@jstamper - I've never installed a patch before, and I'm not a developer but can usually figure things out. I love being able to not redirect multiple paths for QR codes! A couple questions:
1. How do I actually apply the patch? Just put it in the module directory? Or is there more to it?
2. Once patch is installed, how do I specify which URLs don't get redirected?

Thanks!
Adam

jstamper’s picture

@adamfudge7 You can read up on patches here. To apply the bypass just finish your url with ?mobi_bypass=true.

Example: http://www.example.org/node/1?mobi_bypass=true.

aaronott’s picture

Status: Active » Fixed

Added this bypass to both d6 and d7 versions.

Closing.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

deanw’s picture

Issue summary: View changes

Post #5 says this patch has been applied to d6 and d7 in Aug 2012. How do I get a copy of that upgraded version? The latest download is from May 2012 and I don't see a dev version. Thanks

tzin111@gmail.com’s picture

hi,
im using drupal 7 and i also need the new version as #7 ask for.

my problem is like this:
1. i have main site
2. mobile site = m.domain.co.il
3. application with webview - app.domain.co.il

when you enter the main domain drom mobile its need to redirect to landing page that ask if the user want to install application or to go the mobile responsive site.

then i have a loop...
also if i enter m.domain.co.il from mobile its redirect me to the landing page.

if some body can help, it will be great :)

tnx,
nir