• Resolved dbacksbst

    (@dbacksbst)


    When I use the consent shortcode to hide a HubSpot form and visit the page, the page will continuously reload.

    Code:

    [cmplz-consent-area  text="Enable this content by clicking this link" category="marketing"]
    [hubspot type=form portal=xxx id=xxx]
    [/cmplz-consent-area]

    Furthermore, when I click the link to give consent, nothing happens (I suspect the page is reloading too quickly for the cookie settings to appear).

    • This topic was modified 2 years, 11 months ago by dbacksbst.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dbacksbst

    When used in combination with caching, the ‘cache_redirect=true’ attribute should be added to the shortcode: [cmplz-consent-area cache_redirect=true]

    With the cache_redirect parameter added, the plugin redirects the pages to a URL with ?cmplz_consent=1 behind it which allows the caching tool to cache the consent page separately.

    Hope it helps!
    Kind regards,
    Jarno

    Thread Starter dbacksbst

    (@dbacksbst)

    Hi @jarnovos

    I have tried adding cache_redirect=true, but the same behavior occurs. The first time I load the page, it loads normally. After I click the placeholder link and any time I visit the same page afterwards, it infinitely refreshes. With the cache_redirect option, I can see the URL switching back and forth between the original page URL and the URL ending in ?cmplz_consent=1L#cmplz_consent_area_anchor.

    Thread Starter dbacksbst

    (@dbacksbst)

    Hi @jarnovos

    Noticed the issue was marked as resolved, but it is not. No worries, I suspect this was because it took me a while to reply over the holiday break. I set it back to unresolved and tagged you so we can continue our discussion.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dbacksbst,

    Can you provide an URL to the website/page in question, so we can look into this behavior?

    Kind regards,
    Jarno

    Thread Starter dbacksbst

    (@dbacksbst)

    I’d rather not post it publicly, is there a way I can send you the link privately?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @dbacksbst,

    Of course, please feel free to reach out to us at: support(at)complianz.io.

    Kind regards,
    Jarno

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Consent shortcode causing infinite refresh’ is closed to new replies.