forgejo/models
Gusted 5e630d7b10
[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)
2023-07-26 16:48:04 +02:00
..
actions
activities
admin
asymkey
auth
avatars
db
dbfs
fixtures [GITEA] Fix generated source URL on rendered files 2023-07-26 16:48:04 +02:00
forgejo_migrations
git
issues
migrations
organization
packages
perm
project
pull
repo [GITEA] Add Upload URL to release API 2023-07-26 16:33:24 +02:00
secret
shared/types
system
unit
unittest
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go