Harborn-digital / cookie-consent-bundle

Symfony bundle to append Cookie Consent to your website to comply to AVG/GDPR for cookies.
MIT License
19 stars 18 forks source link

Allow custom read_more_link #114

Open korneelwever opened 1 year ago

korneelwever commented 1 year ago

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'})) }}