Skip to content

Commit

Permalink
Merge pull request #205 from amadeus4dev/prodmove
Browse files Browse the repository at this point in the history
move to prod
  • Loading branch information
minjikarin authored Dec 14, 2023
2 parents e7706fa + 42cf660 commit 2cf7a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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://developers.amadeus.com/self-service/apis-docs/guides/$1');
document.write(`<meta http-equiv="refresh" content="0;url=${redirectUrl}" />
<link rel="canonical" href="${redirectUrl}" />`);
}
Expand Down

0 comments on commit 2cf7a49

Please sign in to comment.