Hello all,
I have a site that's desktop URL is http://www.example.org/2011/ and I would like the mobile URL to be http://www.example.com/2011/mobile.
But when I set MT to those settings and enable "Enable automatic redirection of the mobile user". The mobile browser begins to loop and eventually loads an error stating that there was too many redirects. Once I OK that error the URL is http://www.example.com/2011/mobile/mobile/mobile/mobile/mobile/mobile/mo... - or something close to that.
That node/17912 happens to be the /mobile node- but it doesn't load correct (As the URL is so wrong).
Any ideas as to what would be causing this?
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#2 | mobile_tools-redirects-1220166-3.patch | 577 bytes | VanD |
Comments
Comment #1
VanD CreditAttribution: VanD commentedHaving similar problems. Subscribing.
EDIT: My problem is also with mobile redirect enabled. If the sure goes to a path that is not the homepage I get too many redirects.
http://example.com/ redirects to http://m.example.com (Works on mobile device)
http://m.example.com redirects to http://example.com (Works on non mobile device)
htt://example.com/node/181 does not work, gives too many redirects (on mobile device)
Comment #2
VanD CreditAttribution: VanD commentedI've fixed the problem on my site, and created a patch for 6.x-2.3 - The patch would also work for the dev version if the line numbers are updated.
Basically, the formatting of the destination URL wasn't working properly for my use, it's now down in a very simple fashion, and seems to work well. Let me know if I over looked something.
Cheers.
Comment #3
VanD CreditAttribution: VanD commentedComment #4
minorOffense CreditAttribution: minorOffense commentedI'm a little confused as to what we're fixing. The function below is what is in the latest 6.x-2.x
Which as you report states can cause the end of the URL to stack (ex: /mobile/mobile/mobile....)
Not sure how the patch above fixes that issue?
Comment #5
VanD CreditAttribution: VanD commentedThis issue is almost a year old, and I am no longer using it. Sorry.
Comment #6
Devin Carlson CreditAttribution: Devin Carlson commentedMarked #1195696: Firefox 5 user agent is unrecognized and throws an error. and #1268056: Using ?device=desktop causes browser to go into infinite redirect as a duplicates.
Comment #7
benschaaf CreditAttribution: benschaaf commentedI can't speak to the patch, as VanD said, its been awhile since I thought about this one.
But, our issue ended up being server related. So, we resolved it there and didn't try to patch.
Comment #8
minorOffense CreditAttribution: minorOffense commentedI'll review and see if the patch is still required.
Comment #9
ain CreditAttribution: ain commentedI've reproduced the issue also on 6.x-2.7. Still goes to infinite redirect, tested in iPad and iPhone running latest iOS/Safari.
Upgrading to Critical.
NOTE: strangely enough, works on iPad, but not on iPhone.
Comment #10
ain CreditAttribution: ain commentedAbove code does not resolve, applying the patch makes no difference.
Comment #11
ain CreditAttribution: ain commentedAccording to http://drupal.org/node/1298270#comment-5245848, the
$cookie_domain
has to be enabled with the domain in thesettings.php
. This resolved the problem for me.It seems many people are having this issue, it's definitely necessary to document it or implement a helper function in the module that alerts the necessity for the setting.
Downgrading back to normal.
Comment #11.0
ain CreditAttribution: ain commentedfixed typo