- 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)
(cherry picked from commit 5e630d7b10)
Conflicts:
models/fixtures/repo_unit.yml
https://codeberg.org/forgejo/forgejo/pulls/1178
(cherry picked from commit a10c6eb9c9)
(cherry picked from commit 0fcfb355af)