Closed (outdated)
Project:
GeoIP API
Version:
6.x-1.2
Component:
GeoIP Language
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2010 at 18:40 UTC
Updated:
15 Nov 2018 at 13:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
meba commentedI bet you also have globalredirect module?
I fixed this by adding this code:
around line 100 in globalredirect.module. Attaching a patch and reassigning issue to globalredirect module. I certainly dislike this patch so I am posting it as a proof of concept only. Not sure how to solve this properly, this is rather module specific condition.
(The problem is that language_url_rewrite doesn't know GEOIP_LANGUAGE_NEGOTIATION_PATH therefore doesn't set "prefix". That's when the redirect happens.
Comment #2
katbailey commentedNo, like I said I tried this with a fresh D6 install with no other contributed modules. I'd noticed that most similar problems encountered by people involved the Global Redirect module but not so in my case.
Comment #3
drewish commentedOkay confirmed this on a site here. I think Roger had fixed this but it didn't get committed back to contrib. I'll need to do some archeology in our SVN repo.
Comment #4
perandre commentedSame thing here. All pages end up in a loop, and I have to manually disable the geoip_language module in the db.
Comment #5
petiar commentedSame thing here. Just for curiosity - how could you deploy a new version without noticing this kind of issue?
Comment #6
drewish commentedwell, all i can say is we're using it on 300+ sites and haven't run into it. please give me clear instructions on how to replicate it on a clean site install.
Comment #7
vectoroc commentedI've written 2 patches that could help. I'm not sure which way is better
Comment #8
vectoroc commentedChange (url($_GET['q'], array('language' => $language)) == $_GET['q']) to (url($_GET['q'], array('language' => $language)) == base_path().$_GET['q']) in second patch
Comment #9
perandre commentedThanks, Vectoroc! I applied the first patch, and it does the job.
Comment #10
alexbk66- commentedThanks @vectoroc, #7 works!
Comment #11
bojanz commented