mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-07 07:03:21 +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 commit458f20f862
) (cherry picked from commit5e630d7b10
) Conflicts: models/fixtures/repo_unit.yml https://codeberg.org/forgejo/forgejo/pulls/1178 (cherry picked from commita10c6eb9c9
) (cherry picked from commit0fcfb355af
)
This commit is contained in:
parent
b891bb176d
commit
eb20d7110c
1 changed files with 14 additions and 0 deletions
|
@ -608,6 +608,20 @@
|
|||
type: 1
|
||||
created_unix: 946684810
|
||||
|
||||
# BEGIN Forgejo [GITEA] Fix generated source URL on rendered files
|
||||
-
|
||||
id: 1091
|
||||
repo_id: 49
|
||||
type: 1
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 1092
|
||||
repo_id: 49
|
||||
type: 2
|
||||
created_unix: 946684810
|
||||
# END Forgejo [GITEA] Fix generated source URL on rendered files
|
||||
|
||||
-
|
||||
id: 91
|
||||
repo_id: 58
|
||||
|
|
Loading…
Reference in a new issue