diff --git a/appview/pages/templates/fragments/line-quote-button.html b/appview/pages/templates/fragments/line-quote-button.html --- a/appview/pages/templates/fragments/line-quote-button.html +++ b/appview/pages/templates/fragments/line-quote-button.html @@ -227,7 +227,9 @@ ? firstAnchor : `${firstAnchor}~${lastAnchor}`; - const md = `[\`${label}\`](${window.location.pathname}${window.location.search}#${fragment})`; + const linkBase = document.getElementById('round-link-base')?.value + || (window.location.pathname + window.location.search); + const md = `[\`${label}\`](${linkBase}#${fragment})`; const { selectionStart: s, selectionEnd: end, value } = ta; const before = value.slice(0, s); diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -99,6 +99,7 @@ {{ end }} {{ define "contentAfter" }} + {{ template "repo/fragments/diff" (list .Diff .DiffOpts $) }} {{ end }}