summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-09-28 18:05:58 -0400
committer无闻 <joe2010xtmf@163.com>2014-09-28 18:05:58 -0400
commitc1d047d16ed5bc46901ab6efa2ba1e5586d70068 (patch)
tree9c61a4b2fe7426fb44eef636226f4fc4a1132ee1 /models/user.go
parent38f71af363af54aef29ce937b1b813b0446d5a22 (diff)
parent204952439a5dea5388ba1b9dad86e97518d38096 (diff)
downloadgitea-c1d047d16ed5bc46901ab6efa2ba1e5586d70068.tar.gz
gitea-c1d047d16ed5bc46901ab6efa2ba1e5586d70068.zip
Merge pull request #508 from chadoe/homelink
Fix user HomeLink when using a suburl
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index 3e2ea82f43..dcf5afa4fb 100644
--- a/models/user.go
+++ b/models/user.go
@@ -11,7 +11,6 @@ import (
"errors"
"fmt"
"os"
- "path"
"path/filepath"
"strings"
"time"
@@ -91,7 +90,7 @@ func (u *User) DashboardLink() string {
// HomeLink returns the user home page link.
func (u *User) HomeLink() string {
- return "/" + path.Join(setting.AppSubUrl, u.Name)
+ return setting.AppSubUrl + "/" + u.Name
}
// AvatarLink returns user gravatar link.