Currently you cannot customise the path where the "/privacy-statement" is located.
Having multiple languages, I have multiplte privacy statements. I'd like to be able to add this as a param in the render_esi.
so I don't have to do this:
{% set cookies = render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) %} {{ cookies|replace({'privacy-statement': app.request.locale ~'/privacy'})|raw }}
but can do this:
{{render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale, 'read_more_link' : app.request.locale ~'/privacy'})) }}
Currently you cannot customise the path where the "/privacy-statement" is located. Having multiple languages, I have multiplte privacy statements. I'd like to be able to add this as a param in the render_esi. so I don't have to do this:
{% set cookies = render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) %} {{ cookies|replace({'privacy-statement': app.request.locale ~'/privacy'})|raw }}
but can do this:
{{render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale, 'read_more_link' : app.request.locale ~'/privacy'})) }}