summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorThomas Laroche <tho.laroche@gmail.com>2014-12-29 11:55:46 +0100
committerThomas Laroche <tho.laroche@gmail.com>2014-12-29 11:55:46 +0100
commite948c7c262c77d41f05a3f72acd5161713cf18ef (patch)
tree25aba36f14030f79081c666de055bde1aa3c200f /routers
parent81a44e4cd0c4f4c2310b59624748ba0df9fcbe87 (diff)
downloadgitea-e948c7c262c77d41f05a3f72acd5161713cf18ef.tar.gz
gitea-e948c7c262c77d41f05a3f72acd5161713cf18ef.zip
Fix #795
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/setting.go3
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"))