From e7706fa5a08668d586602fae39b59317b511f024 Mon Sep 17 00:00:00 2001 From: Anna Tsolakou Date: Wed, 13 Dec 2023 15:10:54 +0100 Subject: [PATCH] remove slash on redirect --- overrides/main.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overrides/main.html b/overrides/main.html index d68288a8..df163567 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -9,9 +9,9 @@ console.log(window.location.hostname); const path = window.location.pathname; const redirectPattern = /^\/([^/]+)/; - const redirectUrl = path.replace(redirectPattern, 'https://uat.developers.amadeus.com/self-service/apis-docs/guides/$1/'); + const redirectUrl = path.replace(redirectPattern, 'https://uat.developers.amadeus.com/self-service/apis-docs/guides/$1'); document.write(` `); } - {% endblock %} \ No newline at end of file + {% endblock %}