Closed (outdated)
Project:
GeoIP API
Version:
6.x-1.x-dev
Component:
GeoIP Language
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2010 at 03:00 UTC
Updated:
15 Nov 2018 at 13:48 UTC
Jump to comment: Most recent
Comments
Comment #1
drewish commentedNot sure I follow. If you're using 'Path prefix with GeoIP detection fallback.' it will use the language from the path first. So using the language switcher block to load a URL with a different language code would take care of it. Right?
Comment #2
momentuminc commentedFor my site, this is still a problem. I have 4 languages, and for the default language (english), there is no path prefix, but the other languages have a path prefix.
Basically, the outcome is that users in other countries who are redirected can never view the site in English.
Comment #3
chromix commentedI'm seeing this problem as well. Trying to find a solution now.
Comment #4
chromix commentedMaybe someone can check my logic here, but I did something like the following in the if block on line 109:
...And then changed the drupal_goto around line 140:
This works perfectly for how I originally expected this module to work. I don't need this module to force the user into their detected language every time they visit the site, just send them to the appropriate home page on their first visit. I think the session is a good way to ensure than they aren't looped over and over again (especially if they want to see things in English).
If this works for others I'll submit a formal patch, but I'm thinking this might need to be configurable behavior, since some may prefer this module the way it worked before.
Comment #5
bojanz commented