Comment
Hello,
I migrated a repository from GitHub to Codeberg and found a small compatibility problem. On Codeberg the link normalisation in Readme files works differently depending on your current location. I checked existing issues and found out that relative links can be improved with a prefix, using ./README-de.md instead of README-de.md, unfortunately this only helps under certain conditions.
Here's an example which doesn't work on our repository's start page:
<p align="right"><a href="README-de.md">Deutsch</a> <a href="README.md">English</a> <a href="README-sv.md">Svenska</a></p>
The first link points to https://codeberg.org/datenstrom/README-de.md
instead of pointing to https://codeberg.org/datenstrom/yellow/src/branch/main/README-de.md.
A prefix like ./ helps if you use Markdown links, but unfortunately not if you use HTML <a> elements.
First impression, everything works well. We were a bit puzzled as to why our language switcher only worked on subpages and not on the repository's start page. We tried various Markdown workarounds and suspected that absolute URLs are required on Codeberg. That would fix the problem, but also make forking harder. By the way, for images it makes apparently no difference at all, we can use the same HTML format on Codeberg and GitHub.
Please let me know if this is the expected behaviour. I would be grateful for any comments or suggestions.