Don't use incoming country prefix if request is not from the site
nedjo - October 18, 2008 - 14:31
| Project: | Country code |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Currently, a prefix will be used to set the country. This is used, e.g., in the country switcher block.
However, if a user is coming from offsite, e.g., following a link, s/he should get the IP-based country.

#1
Introduced a setting, 'country_code_external', and a corresponding test, _country_code_is_external(). Looks like it shd work but I haven't tested.
#2
Since the patch is already in, marking as active (needs more info) for the testing.