Just add ?url= followed by your protocol URL to create a shareable link instantly!
@@ -343,13 +337,13 @@
const input = document.getElementById('steamUrl');
const url = input.value.trim();
- if (!url.includes('://')) {
- alert('Please enter a valid protocol URL (must include "://")');
+ if (!url.match(/^steam:\/\/joinlobby\/\d+\/\d+$/)) {
+ alert('Please enter a valid Steam lobby URL in the format: steam://joinlobby/123456/987654321');
return;
}
- // Keep original URL format, just append it to our domain
- let shareableUrl = window.location.origin + window.location.pathname + '?url=' + encodeURIComponent(url);
+ // Create the exact format URL
+ let shareableUrl = 'https://steadirect.com/?url=' + url;
const resultDiv = document.getElementById('result');
resultDiv.innerHTML = `