From 0e5b5508d9e20adb0a97f28e9f93c1fea6296875 Mon Sep 17 00:00:00 2001 From: MinjiK Date: Wed, 10 Jan 2024 14:06:08 +0100 Subject: [PATCH] Ignore event listener --- overrides/main.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/overrides/main.html b/overrides/main.html index fcde16aa..9230ae49 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -12,13 +12,5 @@ const redirectUrl = path.replace(redirectPattern, 'https://developers.amadeus.com/self-service/apis-docs/guides/$1'); document.write(``); } - - // Add event listener to all links starting with developers.amadeus.com - document.querySelectorAll('a[href^="https://developers.amadeus.com"]').forEach(link => { - link.addEventListener('click', function (e) { - e.preventDefault(); // Prevent the default action (navigating to the link) - window.location.href = this.href; // Manually redirect the page to the link - }); - }); {% endblock %}