Skip to content

Links in Markdown files are not evaluated relative to the (relevant / main) branch #28904

Closed
@MGChecker

Description

@MGChecker

Description

If, for example in your README, you have a link on some other files in the repository, they are not relative to the current branch. I.e. doc/test.md and /doc/test.md do not link to https://try.gitea.io/MGChecker/READMEsrc/branch/main/doc/test.md , but to https://try.gitea.io/MGChecker/README/doc/test.md . This is a regression, this worked a few months ago.
See https://try.gitea.io/MGChecker/README/src/branch/main

Gitea Version

1.21.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

From your downloads, but not relevant

Database

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions