From c9bfc554da02b7b23464b92990517f63deb05050 Mon Sep 17 00:00:00 2001 From: Anna TSOLAKOU Date: Mon, 18 Dec 2023 17:56:53 +0100 Subject: [PATCH] replace equal with includes --- overrides/main.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overrides/main.html b/overrides/main.html index 5854b5a8..70c3205e 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -24,9 +24,10 @@ if (target.tagName === 'A') { console.log('we are in the first if'); var href = target.getAttribute('href'); - if (href.startsWith('https://developers.amadeus.com')) { + if (href.includes('developers.amadeus.com')) { console.log('we are in the second if'); event.preventDefault(); + console.log('href:', href); window.location.href = href; } }