### 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