forgejo/models
Earl Warren 20f47bbca9
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>
2023-08-08 09:04:04 +00:00
..
actions Fix log typo in task.go (#26337) 2023-08-05 11:43:03 +02:00
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) 2023-08-07 12:23:59 +02:00
admin
asymkey
auth Remove "misc" scope check from public API endpoints (#26134) 2023-07-26 02:53:31 +00:00
avatars
db Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2023-07-31 06:28:53 +00:00
dbfs
fixtures fix generated source URL on rendered files (#26364) 2023-08-08 09:04:04 +00:00
git Some fixes of the prompt of new branches (#26257) 2023-08-01 07:25:11 +00:00
issues Use more IssueList instead of []*Issue (#26369) 2023-08-07 19:26:40 +00:00
migrations Fix typo in metadata (#26207) 2023-07-30 23:54:22 +00:00
organization
packages
perm
project
pull
repo Fix the topic validation rule and suport dots (#26286) 2023-08-03 09:18:06 +00:00
secret
shared/types
system
unit
unittest
user Fix API leaking Usermail if not logged in (#25097) 2023-07-31 01:18:38 +00:00
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