diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 49f8387d79..f327ed1440 100644 --- a/models/user.go +++ b/models/user.go @@ -11,6 +11,7 @@ import ( "errors" "fmt" "os" + "path" "path/filepath" "strings" "time" @@ -90,7 +91,7 @@ func (u *User) DashboardLink() string { // HomeLink returns the user home page link. func (u *User) HomeLink() string { - return setting.AppSubUrl + "/user/" + u.Name + return "/" + path.Join(setting.AppSubUrl, u.Name) } // AvatarLink returns user gravatar link. |