diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-07-23 17:56:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 11:56:43 +0200 |
commit | a12a5f3652c339b17b187ff424a480631a3c1e1e (patch) | |
tree | 9216cf573c5aab64592d39d9c50387ff4e00a31a | |
parent | b167f35113e643ccdb17a2dde55bdec5960b284b (diff) | |
download | gitea-a12a5f3652c339b17b187ff424a480631a3c1e1e.tar.gz gitea-a12a5f3652c339b17b187ff424a480631a3c1e1e.zip |
Fix duplicated url prefix on issue context menu (#26066)
Fix #26060
-rw-r--r-- | templates/repo/issue/view_content/context_menu.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index 296668c9e0..ed22bc878b 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -10,7 +10,7 @@ {{else}} {{$referenceUrl = printf "%s/files#%s" .ctxData.Issue.Link .item.HashTag}} {{end}} - <div class="item context js-aria-clickable" data-clipboard-text-type="url" data-clipboard-text="{{AppSubUrl}}{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.copy_link"}}</div> + <div class="item context js-aria-clickable" data-clipboard-text-type="url" data-clipboard-text="{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.copy_link"}}</div> <div class="item context js-aria-clickable quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.HashTag}}-raw">{{.ctxData.locale.Tr "repo.issues.context.quote_reply"}}</div> {{if not .ctxData.UnitIssuesGlobalDisabled}} <div class="item context js-aria-clickable reference-issue" data-target="{{.item.HashTag}}-raw" data-modal="#reference-issue-modal" data-poster="{{.item.Poster.GetDisplayName}}" data-poster-username="{{.item.Poster.Name}}" data-reference="{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.reference_issue"}}</div> |