diff --git a/theme/sponsor.js b/theme/sponsor.js index b730cf9f5..fb25a468a 100644 --- a/theme/sponsor.js +++ b/theme/sponsor.js @@ -15,7 +15,8 @@ var mobilesponsorCTA = mobilesponsorSide.querySelector(".mobilesponsor-cta") async function getSponsor() { - const url = "https://cloud.hacktricks.wiki/sponsor" + const currentUrl = encodeURIComponent(window.location.href); + const url = `https://cloud.hacktricks.wiki/sponsor?current_url=${currentUrl}`; try { const response = await fetch(url, { method: "GET" }) if (!response.ok) {