diff options
author | 无闻 <u@gogs.io> | 2014-12-29 20:09:50 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2014-12-29 20:09:50 +0800 |
commit | 52cc58fd9d8e5c747f55742611d54e0c10c02346 (patch) | |
tree | 06bd34d6027d8ee9b9c225b8857c8a60f10eab73 | |
parent | 477bea574a2c8c84fea9b6a1254022974d73acde (diff) | |
parent | e948c7c262c77d41f05a3f72acd5161713cf18ef (diff) | |
download | gitea-52cc58fd9d8e5c747f55742611d54e0c10c02346.tar.gz gitea-52cc58fd9d8e5c747f55742611d54e0c10c02346.zip |
Merge pull request #797 from Mikayex/dev
Fix #795
-rw-r--r-- | routers/repo/setting.go | 3 |
1 files changed, 2 insertions, 1 deletions
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")) |