oveleon/contao-cookiebar

Browser Warning / Cookiebar PopUp-Link

Closed this issue · 2 comments

Prerequisites

  • I checked for duplicate issues (open and closed)
  • I am using the latest stable version/release of the Contao Cookiebar
  • This issue is not a question, not a feature request and I have read the documentation and pinned issues

Please select the topic(s) that most closely match your concern

Template (HTML/Twig)

Description

The browsers Chrome and Firefox prompt a warning (external website) when clicking the cookiebar link as provided by the ccb_opener_default.html5 template. This seems to happen due to the href="" part which is missing a local link.

Contao 4.13.46 / Cookiebar 1.16.5

Relevant log output

No response

@birdmedia do you have more information such as screenshots and if you are using the module, the cookiebar page or the content-element, maybe even the insert-tags?

Where does the warning occur?
What OS and browser-version are you using?

Usage of a custom script on the website - This doesn't have anything to do with the cookiebar.

Array.from(document.querySelectorAll("a")).filter(l=>l.hostname!==location.hostname).forEach(el=>el.addEventListener("click",evtL));function evtL(e){if(confirm("Dieser Link führt auf eine externe Website. Wollen Sie die Website example.com verlassen?")){return}else{e.preventDefault();return!1}}