You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Copy Link" in templates/repo/issue/view_content/context_menu.tmpl is constructed this way: data-clipboard-text="{{AppSubUrl}}{{$referenceUrl}}". It seems that {{AppSubUrl}} is redundant:
Description
"Copy Link" in
templates/repo/issue/view_content/context_menu.tmpl
is constructed this way:data-clipboard-text="{{AppSubUrl}}{{$referenceUrl}}"
. It seems that{{AppSubUrl}}
is redundant:$referenceUrl
->.ctxData.Issue.Link
->func (issue *Issue) Link() string
func (issue *Issue) Link() string
->fmt.Sprintf("%s/%s/%d", issue.Repo.Link(), path, issue.Index)
issue.Repo.Link()
->setting.AppSubURL + "/" + url.PathEscape(repo.OwnerName) + "/" + url.PathEscape(repo.Name)
As you can see there is already AppSubURL in referenceUrl so it looks like that it should be removed from the template.
Gitea Version
1.20
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
SQLite
The text was updated successfully, but these errors were encountered: