diff options
author | Earl Warren <109468362+earl-warren@users.noreply.github.com> | 2023-08-08 11:04:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 09:04:04 +0000 |
commit | 20f47bbca932b1f6a5290fda3391928686ed0c24 (patch) | |
tree | 51d3a49f0561eae9a01fe77a96821e2bbc82d127 /models/fixtures | |
parent | 71d253f42e6f7d73fdaad5039df58893c336a0e6 (diff) | |
download | gitea-20f47bbca932b1f6a5290fda3391928686ed0c24.tar.gz gitea-20f47bbca932b1f6a5290fda3391928686ed0c24.zip |
fix generated source URL on rendered files (#26364)
- 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.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1088
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/repo_unit.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml index bb8715a202..c22eb8c2a2 100644 --- a/models/fixtures/repo_unit.yml +++ b/models/fixtures/repo_unit.yml @@ -637,3 +637,15 @@ repo_id: 58 type: 5 created_unix: 946684810 + +- + id: 96 + repo_id: 49 + type: 1 + created_unix: 946684810 + +- + id: 97 + repo_id: 49 + type: 2 + created_unix: 946684810 |