Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-30 22:06:11 +01:00

Fix user HomeLink when using a suburl

This commit is contained in:
Martin van Beurden 2014-09-28 13:55:58 +02:00
parent 5e747bc877
commit 204952439a

View file

@ -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.