client-redirect.html (342B)
1 <!doctype html> 2 <script> 3 const query = window.location.search.substr(1); 4 const type = query.split('&')[0]; 5 const url = decodeURIComponent(query.split('&')[1]); 6 7 if (type == 'meta') { 8 document.write(`<meta http-equiv="Refresh" content="0; URL=${url}">`); 9 } else if (type == 'location') { 10 window.location = url; 11 } 12 </script>