diff --git a/static/mainpage.js b/static/mainpage.js index 2d07971..2a2ca57 100644 --- a/static/mainpage.js +++ b/static/mainpage.js @@ -8,8 +8,8 @@ document.getElementById('groupform').onsubmit = function(e) { e.preventDefault(); let group = document.getElementById('group').value.trim(); - - location.href = '/group/' + group; + if(group !== '') + location.href = '/group/' + group; } async function listPublicGroups() {