mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-27 07:56:13 +00:00
Merge pull request #508 from chadoe/homelink
Fix user HomeLink when using a suburl
This commit is contained in:
commit
c1d047d16e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user