<script> let queryParams = new URLSearchParams(window.location.search); document.getElementById("message").innerText = queryParams.get("message"); let link = document.getElementById("link"); link.innerText = queryParams.get("linkText"); link.href = queryParams.get("linkUrl"); </script>
1) the user click the shortened version of this link
2) the user click "click here to shine"
3) the alert opens
I was inspired by this article on portswigger
in particular from this example