In _country_code_init_code(), we should be considering whether the country_code session variable is already set as part of the logic of determining how to set it.

This will allow us to distinguish between fresh visits and repeat ones. This is related to the existing test for whether a request originates externally. If this is a new request, we should behave as if it is external.

Comments

nedjo’s picture

Assigned: Unassigned » nedjo
nedjo’s picture

Status: Active » Needs review

Applied a fix. Needs testing.

catch’s picture

Status: Needs review » Postponed (maintainer needs more info)

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