Skip to main content

Cookiebot Subpage redirect issue



  • Official comment
    Brian Mørkeberg Lundkvist

    Hi All

    Please do reach out to our support team with concrete examples of this and we will make it a priority to look into this. 

  • Wiliam


  • Mark

    Did you manage to find a solution for this issue? We're experiencing the same issue with a manual (tag manager) Cookiebot implementation on our Wix site. The auto-blocking implementation does not have this issue but causes other undesirable results such as preventing the Wix language menu from working.

  • ainsley2021

    I am facing the same issue, if you receive the solution kindly mention it here so others can take benefit.

  • Ian

    Did anyone find a solution to this? As soon as anyone clicks on the 'accept' button on my site, it always redirects to the homepage, rather than staying on the page that the user has entered. I want to do some marketing with links to a specific 'lead' page on my Wix site, but this screws that up completely. 

  • Lorenzo Bonzi 97

    Hi Guys, if it can help I had the chance to finally Solve this via Cookiebot support.

    You can insert this piece of code in Wix Website inside the custom code section.

    You should put this in the header and need to possibly activate all times ( or maybe just one time, not sure 100% about this), that's the setting I'm using right now and they seem to work.

    Here is the precious code:

    window.addEventListener('DOMContentLoaded', () => {
    let d = document,
    a = d.getElementsByTagName('a');

    for (var i of a)
    if (i.getAttribute('href') === '#')
    i.addEventListener('click', e => {

    Hope this can be helpful to others as it is for me, as I took a lot to actually find an answer :D 




Please sign in to leave a comment.