'?l='+encodeURIComponent(document.getElementById('search-location').value);
            } else if (document.getElementById('search-location').value.trim() === '' && document.getElementById('search-tag').value.trim() !== '') {
                window.location.href = '?s='+encodeURIComponent(document.getElementById('search-tag').value);
            } else {
                window.location.href = '?s='+encodeURIComponent(document.getElementById('search-tag').value)+'&l='+encodeURIComponent(document.getElementBy