loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Link to existing PR when trying to open a new PR on the same branches (#25494)

when trying to create a PR for an existing PRs branch combination link
to the PR directly and not just to the repo.

Before:

![image](https://github.com/go-gitea/gitea/assets/1135157/b6c71323-29c8-4024-afa5-420eed145e91)

After:

![image](https://github.com/go-gitea/gitea/assets/1135157/837665f5-7459-46c6-86d4-c2dbedabc262)

authored by

sebastian-sauer and committed by
GitHub
7609f2f2 323c6cba

+1 -1
+1 -1
templates/repo/diff/compare.tmpl
··· 192 192 {{if .HasPullRequest}} 193 193 <div class="ui segment grid title"> 194 194 <div class="twelve wide column issue-title"> 195 - {{.locale.Tr "repo.pulls.has_pull_request" (Escape $.RepoLink) (Escape $.RepoRelPath) .PullRequest.Index | Safe}} 195 + {{.locale.Tr "repo.pulls.has_pull_request" (print (Escape $.RepoLink) "/pulls/" .PullRequest.Issue.Index) (Escape $.RepoRelPath) .PullRequest.Index | Safe}} 196 196 <h1> 197 197 <span id="issue-title">{{RenderIssueTitle $.Context .PullRequest.Issue.Title $.RepoLink $.Repository.ComposeMetas}}</span> 198 198 <span class="index">#{{.PullRequest.Issue.Index}}</span>