diff --git a/public/templates/views/tags.tmpl b/public/templates/views/tags.tmpl index cec062b..9af48f7 100644 --- a/public/templates/views/tags.tmpl +++ b/public/templates/views/tags.tmpl @@ -87,7 +87,7 @@ } async function deleteTag(id) { - const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURI(id)); + const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURIComponent(id)); if (res.status === 200 && res.data.success) { const tr = document.getElementById(id); tr.parentNode.removeChild(tr);