Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5298
    darthsaschi
    Participant

    Hi dfactory.

    And first of all thank you for this plugin! I really appreciate this.

    I have an issue with deep linking. Due to the fact that the “Accept”-button calls the baseURI accepting the cookie notice always leads to a page reload.

    Thus when opening a deep link on a onepager – hash-link to somewhere down the site – and accepting the cookie notice the page is reloaded an I´m at the top of the page – but not where I wanted to be.

    It´s the same when I scrolled down the page, accept at any time then – boom – I´m at the top and have to scroll down again.

    Wouldn’t it be possible do the following:

    – Click “Accept”
    – the cookie for Cookie Notice is set
    – the container for cookie notice is set to display:none;

    Or some other way to avoid a page reload?

    That would be great.

    Thank you and kind regards.

    Sascha

    #5299
    Bartosz
    Keymaster

    Sasha, it should not work like that – the cookie is set via Javascript, without any page reload.

    Did you check for any JS issues on your site?

    #5301
    darthsaschi
    Participant

    Hi Bartosz.

    Thank you for answering.

    I even do not know how to check for JS issues ;)

    In the Chrome devtools I found an event listener on the “Accept”-Button.

    The URL is http://bnbm.de/de/home – site is Work In Progress.

    I use the Cardinal theme, maybe this has something to do with that?

    If needed I can give you Admin-access to the page?

    Thanks again for your efforts.

    Sascha

    #5304
    Bartosz
    Keymaster

    Sascha, I don’t see a JS issue at your site. But this must be a JS conflict with one of your site scripts. Can’t tell you which one exactly – there is really a lot of it out there.

    All I can tell you is when a button is clicked there definitely should be no page reload action. Maybe there is an event listener for AjaxComplete? Can’t help you more, sorry.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.