mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-02 23:41:05 +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.
This commit is contained in:
parent
ec9b2c47db
commit
458f20f862
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