diff --git a/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html b/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html index bbd78ab..9fe6ee7 100644 --- a/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html +++ b/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html @@ -107,7 +107,7 @@ var protection = getValue(); $.ajax({ method:'PATCH', - url:'/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)', + url:'@path/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)', contentType: 'application/json', dataType: 'json', data:JSON.stringify({protection:protection}),