Thomas Laroche 10 년 전
부모
커밋
e948c7c262
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      routers/repo/setting.go

+ 2 - 1
routers/repo/setting.go

@@ -10,6 +10,7 @@ import (
 	"fmt"
 	"fmt"
 	"strings"
 	"strings"
 	"time"
 	"time"
+	"path"
 
 
 	"github.com/Unknwon/com"
 	"github.com/Unknwon/com"
 
 
@@ -169,7 +170,7 @@ func SettingsCollaboration(ctx *middleware.Context) {
 	ctx.Data["Title"] = ctx.Tr("repo.settings")
 	ctx.Data["Title"] = ctx.Tr("repo.settings")
 	ctx.Data["PageIsSettingsCollaboration"] = true
 	ctx.Data["PageIsSettingsCollaboration"] = true
 
 
-	repoLink := strings.TrimPrefix(ctx.Repo.RepoLink, "/")
+	repoLink := path.Join(ctx.Repo.Owner.LowerName, ctx.Repo.Repository.LowerName)
 
 
 	if ctx.Req.Method == "POST" {
 	if ctx.Req.Method == "POST" {
 		name := strings.ToLower(ctx.Query("collaborator"))
 		name := strings.ToLower(ctx.Query("collaborator"))