summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorMartin van Beurden <chadoe@gmail.com>2014-09-28 13:55:58 +0200
committerMartin van Beurden <chadoe@gmail.com>2014-09-28 13:55:58 +0200
commit204952439a5dea5388ba1b9dad86e97518d38096 (patch)
treefc1d8d4db37515bcc82072b4f8122a2ad8917fc6 /models/user.go
parent5e747bc877957c04425fd6d4753794a54798b622 (diff)
downloadgitea-204952439a5dea5388ba1b9dad86e97518d38096.tar.gz
gitea-204952439a5dea5388ba1b9dad86e97518d38096.zip
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 8aa349c8a8..5d550424b0 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.