mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
[GITEA] Fix generated source URL on rendered files
- The permalink and 'Reference in New issue' URL of an renderable
file (those where you can see the source and a rendered version of it,
such as markdown) doesn't contain `?display=source`. This leads the
issue that the URL doesn't have any effect, as by default the rendered
version is shown and thus not the source.
- Add `?display=source` to the permalink URL and to 'Reference in New Issue' if it's renderable file.
- Add integration testing.
(cherry picked from commit 458f20f862
)
This commit is contained in:
parent
9753c7e4b8
commit
5e630d7b10
3 changed files with 50 additions and 2 deletions
|
@ -607,3 +607,15 @@
|
|||
repo_id: 52
|
||||
type: 1
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 91
|
||||
repo_id: 49
|
||||
type: 1
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 92
|
||||
repo_id: 49
|
||||
type: 2
|
||||
created_unix: 946684810
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue