partially fix#19345
This PR add some `Link` methods for different objects. The `Link`
methods are not different from `HTMLURL`, they are lack of the absolute
URL. And most of UI `HTMLURL` have been replaced to `Link` so that users
can visit them from a different domain or IP.
This PR also introduces a new javascript configuration
`window.config.reqAppUrl` which is different from `appUrl` which is
still an absolute url but the domain has been replaced to the current
requested domain.
<a href="{{.LatestPullRequest.Issue.HTMLURL}}" class="ui text-label purple large label vm">{{svg"octicon-git-merge"16"mr-2"}}{{$.locale.Tr"repo.pulls.merged"}}</a>
<a href="{{.LatestPullRequest.Issue.Link}}" class="ui text-label purple large label vm">{{svg"octicon-git-merge"16"mr-2"}}{{$.locale.Tr"repo.pulls.merged"}}</a>
{{elseif.LatestPullRequest.Issue.IsClosed}}
<a href="{{.LatestPullRequest.Issue.HTMLURL}}" class="ui text-label red large label vm">{{svg"octicon-git-pull-request"16"mr-2"}}{{$.locale.Tr"repo.issues.closed_title"}}</a>
<a href="{{.LatestPullRequest.Issue.Link}}" class="ui text-label red large label vm">{{svg"octicon-git-pull-request"16"mr-2"}}{{$.locale.Tr"repo.issues.closed_title"}}</a>
{{else}}
<a href="{{.LatestPullRequest.Issue.HTMLURL}}" class="ui text-label green large label vm">{{svg"octicon-git-pull-request"16"mr-2"}}{{$.locale.Tr"repo.issues.open_title"}}</a>
<a href="{{.LatestPullRequest.Issue.Link}}" class="ui text-label green large label vm">{{svg"octicon-git-pull-request"16"mr-2"}}{{$.locale.Tr"repo.issues.open_title"}}</a>