mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 19:12:44 +01:00
#3577 incorrect URL produced by AvatarLink
This commit is contained in:
parent
b3d9ca4ccd
commit
c50d59874d
2 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ func (u *User) RelAvatarLink() string {
|
|||
func (u *User) AvatarLink() string {
|
||||
link := u.RelAvatarLink()
|
||||
if link[0] == '/' && link[1] != '/' {
|
||||
return setting.AppUrl + link[1:]
|
||||
return setting.AppUrl + strings.TrimPrefix(link, setting.AppSubUrl)[1:]
|
||||
}
|
||||
return link
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="commit-form-wrapper">
|
||||
<img width="48" height="48" class="ui image commit-avatar" src="{{.SignedUser.AvatarLink}}">
|
||||
<img width="48" height="48" class="ui image commit-avatar" src="{{.SignedUser.RelAvatarLink}}">
|
||||
<div class="commit-form">
|
||||
<h3>{{.i18n.Tr "repo.editor.commit_changes"}}</h3>
|
||||
<div class="field">
|
||||
|
|
Loading…
Reference in a new issue