diff --git a/web/html/servers.html b/web/html/servers.html index bfc35638..dd1882d3 100644 --- a/web/html/servers.html +++ b/web/html/servers.html @@ -309,10 +309,10 @@ } let secretWebPath = this.modal.server.secretWebPath; if (!secretWebPath.startsWith('/')) { - secretWebPath = '/' + secretWebPath.slice(1); + secretWebPath = '/' + secretWebPath; } if (!secretWebPath.endsWith('/')) { - secretWebPath = secretWebPath.slice(0, -1) + '/'; + secretWebPath = secretWebPath + '/'; } console.log(this.modal.server); axios