]> source.dussan.org Git - gitea.git/commitdiff
Fix #795
authorThomas Laroche <tho.laroche@gmail.com>
Mon, 29 Dec 2014 10:55:46 +0000 (11:55 +0100)
committerThomas Laroche <tho.laroche@gmail.com>
Mon, 29 Dec 2014 10:55:46 +0000 (11:55 +0100)
routers/repo/setting.go

index aec79aa436364731e5ac685940e4d06e2ca28d31..33bf1eab28f5eaaf5fe0318d45a4fa3b19cc242b 100644 (file)
@@ -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"))