From: Thomas Laroche Date: Mon, 29 Dec 2014 10:55:46 +0000 (+0100) Subject: Fix #795 X-Git-Tag: v0.9.99~1557^2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e948c7c262c77d41f05a3f72acd5161713cf18ef;p=gitea.git Fix #795 --- diff --git a/routers/repo/setting.go b/routers/repo/setting.go index aec79aa436..33bf1eab28 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -10,6 +10,7 @@ import ( "fmt" "strings" "time" + "path" "github.com/Unknwon/com" @@ -169,7 +170,7 @@ func SettingsCollaboration(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("repo.settings") 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" { name := strings.ToLower(ctx.Query("collaborator"))