oveleon / contao-cookiebar

Cookie bar for the Contao Open Source CMS
GNU Affero General Public License v3.0
58 stars 24 forks source link

Browser Warning / Cookiebar PopUp-Link #223

Closed birdmedia closed 1 month ago

birdmedia commented 1 month ago

Prerequisites

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

zoglo commented 1 month ago

@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?

zoglo commented 1 month ago

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}}