Skip to content

Commit 9c42622

Browse files
committed
f
1 parent 29b4f5c commit 9c42622

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

theme/sponsor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
var mobilesponsorCTA = mobilesponsorSide.querySelector(".mobilesponsor-cta")
1616

1717
async function getSponsor() {
18-
const url = "https://cloud.hacktricks.wiki/sponsor"
18+
const currentUrl = encodeURIComponent(window.location.href);
19+
const url = `https://cloud.hacktricks.wiki/sponsor?current_url=${currentUrl}`;
1920
try {
2021
const response = await fetch(url, { method: "GET" })
2122
if (!response.ok) {

0 commit comments

Comments
 (0)