diff --git a/master/templates/assets/js/status_update.js b/master/templates/assets/js/status_update.js index 0738dca..9f6509a 100644 --- a/master/templates/assets/js/status_update.js +++ b/master/templates/assets/js/status_update.js @@ -1,10 +1,12 @@ -// Refresh page without status arg - -// Wait 10 seconds +// Wait for 10 seconds setTimeout(function() { - // Refresh page - // Get domain from param + // Get the 'domain' parameter from the current URL + var urlParams = new URLSearchParams(window.location.search); var domain = urlParams.get('domain'); - window.location = "https://hnshosting.au/success?domain=" + domain; -}, 10000); \ No newline at end of file + // Construct the new URL with the 'domain' parameter + var newURL = "https://hnshosting.au/info?domain=" + domain; + + // Redirect to the new URL + window.location.href = newURL; +}, 10000);