Make path relative

This commit is contained in:
Kai Vogelgesang 2020-04-17 03:13:14 +02:00
parent f1d98376d4
commit 1d55095691

View File

@ -19,7 +19,7 @@ this is the base site
document.getElementById("btn_register").onclick = function (e) { document.getElementById("btn_register").onclick = function (e) {
let username = document.getElementById("username").value; let username = document.getElementById("username").value;
window.location.replace(`/register/${encodeURIComponent(username)}`) window.location.replace(`register/${encodeURIComponent(username)}`)
}; };
</script> </script>
</body> </body>