We are using Mobile Tools 6.x-2.4 with this patch:
http://drupal.org/files/issues/front_redirection-703708-6.x-2.3.patch
We have subpages on the main site that have the mobile content:
mysite/mobi
We have a separate theme for the /mobi* pages.
We are not using Mobile Tools to switch the theme, we are using ThemeKey for that (because we had some cases where Mobile Tools was applying the mobile theme to the desktop home page). So on the "Theme switching" tab we have selected "No theme switch."
ThemeKey is handling the theme switching correctly - if you go to /mobi you see the page with the mobile theme.
What is NOT working is Configuration -> Redirection settings -> CHECKED Enable automatic redirection of the mobile user.
Cookie duration is 0.
Mobile URL is mysite/mobi
Desktop URL is mysite/home
Exception type: Do only redirect from the following pages:
<front> (angle bracket front)
/
home
Choose another frontpage for mobile visitors.: mobi
All we want is for a mobile user who lands on the site homepage to be redirected to /mobi. Cannot get it to work.
mysites/home?device=mobile DOES redirect to /mobi, which suggests the module is not correctly detecting mobile users.
Comments
Comment #1
devin carlson commentedThis is a duplicate of #932236: Redirecting Only the Homepage.
Comment #2
hwasem commentedmemcinto, did you ever get redirection working in 6.x-2.4?
I upgraded from 2.3 and applied the front-page redirection patch in #932236: Redirecting Only the Homepage (the first patch, not #11) and it is still not working.
I enabled redirection cookie for 86400 seconds (24 hours) and am only redirecting these pages:
event_cal
/
branches
branches/*
EDIT: I had to revert to 2.3 to do testing, and I'm definitely interested if there is a fix found.
Comment #3
memcinto commentedNo, I did not ever get this working.
Comment #4
alfthecat commentedSorry for commenting on a closed issue, but I think marking this issue as duplicate of #932236: Redirecting Only the Homepage is not really accurate and I have found the solution for the problem described in this issue.
For one: don't use sub-subdomains. I was testing on http://dev.example.com and used http://m.dev.example.com. This breaks redirection for some reason, so you'll see problems that dissappear when you use http://m.example.com for testing.
So here are my settings:
- m.example.com, don't use subdomains of a subdomain
- Enable automatic redirection of site visitors: YES (check this)
- Cookie lifespan: 0
- Configure unique front page settings for site visitors visiting the mobile site: yourmobilehomepage
That's it, works for me in the latest dev. Note that before the 'view full site' link didn't work, now that too is behaving like expected.
Took me a while to figure this out, hope it helps you!
Comment #4.0
alfthecat commentedcorrecting settings for Do only redirect from these pages
Comment #5
alfthecat commented