We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Consent form to current uri?

Development and Programming

Out of Control's avatar
Out of Control
10 posts
4 weeks ago
Out of Control's avatar Out of Control

Is there reason why the consent form sends a POST request to the current uri 'action' => ee()->functions->fetch_current_uri(), instead of to an ACT= endpoint? One of our sites has a bit of a complex url setup and on one template group current_uri doesn’t match the visible page URL, and instead gives a 404 error.

       
Tom Jaeger's avatar
Tom Jaeger
497 posts
4 weeks ago
Tom Jaeger's avatar Tom Jaeger

can you post your template tag for the form here?

       
Out of Control's avatar
Out of Control
10 posts
4 weeks ago
Out of Control's avatar Out of Control

sorry, meant to post in the thread…

{exp:consent:form consent="ee:cookies\_functionality|ee:cookies\_performance" form_id='cookieConsentForm'} {consents}<input type=”hidden” name=”\{consent\_short\_name\}” value=”n”>{/consents} <h4 [removed]>Cookie Policy</h4> Clicking ‘Accept All Cookies’ means you agree to our cookie use and data sharing as described in our ]privacy policy under ‘Cookies and Tracking Technologies’. <input class=”btn btn-sm btn-primary” type=”submit” name=”submit” value=”Accept All Cookies”> <input class=”btn btn-sm btn-primary” type=”submit” name=”submit” value=”Necessary Cookies Only”> <small> ]Manage cookie options</small> {/exp:consent:form}

       
Out of Control's avatar
Out of Control
10 posts
4 weeks ago
Out of Control's avatar Out of Control

Thank you.

       
Tom Jaeger's avatar
Tom Jaeger
497 posts
4 weeks ago
Tom Jaeger's avatar Tom Jaeger

Following is a PR giving options. (theres also a docs PR linked)

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.