From e948c7c262c77d41f05a3f72acd5161713cf18ef Mon Sep 17 00:00:00 2001 From: Thomas Laroche Date: Mon, 29 Dec 2014 11:55:46 +0100 Subject: [PATCH] Fix #795 --- routers/repo/setting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))