The country path module doesn't add country context to the response.

Created on 17 October 2023, about 1 year ago

Problem/Motivation

The country path module doesn't add a "country.url" cache context to the response. For this reason dynamic page cache stores only the page that has been accessed earlier for both countries.

Say we have country A and country B and a page /test that exists for both countries, but it's content is different. If the user accesses the page /test for country A first and then opens the same page for country B the page will look the same as for page A.

Steps to reproduce

1. Configure 2 or more countries.
2. Configure domain access module.
3. Create a page that will be available for both countries but the content will be different. E.g. the view that shows a list of nodes available for the country.
4. Check this page from different countries.

Proposed resolution

Add cache country context to the response.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine _tarik_ Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024