Download & Extend

Don't use incoming country prefix if request is not from the site

Project:Country code
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

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.

Comments

#1

Status:active» needs review

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

Status:needs review» postponed (maintainer needs more info)

Since the patch is already in, marking as active (needs more info) for the testing.

nobody click here