From 204952439a5dea5388ba1b9dad86e97518d38096 Mon Sep 17 00:00:00 2001 From: Martin van Beurden Date: Sun, 28 Sep 2014 13:55:58 +0200 Subject: [PATCH] Fix user HomeLink when using a suburl --- models/user.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/user.go b/models/user.go index 8aa349c8..5d550424 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.