If i do: spec.yaml <spec.yaml>_ in a readme file it is rendered properly as a link pointing to a file in the tree of the repo. For example: https://pagure.io/modulemd/blob/master/f/spec.yaml. However, on the Overview tab it is rendered incorrectly as https://pagure.io/spec.yaml.
spec.yaml <spec.yaml>
https://pagure.io/modulemd/blob/master/f/spec.yaml
https://pagure.io/spec.yaml
See https://pagure.io/modulemd vs https://pagure.io/modulemd/blob/master/f/README.rst
That's because the link created is relative to the URL you're in, in the first case, the link created is: <a href="spec.yaml">spec.yaml</a> related to https://pagure.io/modulemd/blob/master/f/README.rst so it takes that url replaces the README.rst with spec.yaml (that's since the url does not end with a /), in the second case the url is https://pagure.io/modulemd, here as well it does not end with a / so modulemd is stripped down and replaced by the content of the link spec.yaml.
<a href="spec.yaml">spec.yaml</a>
https://pagure.io/modulemd/blob/master/f/README.rst
README.rst
spec.yaml
/
https://pagure.io/modulemd
modulemd
You can also check https://pagure.io/modulemd/ where then the link points to: https://pagure.io/modulemd/spec.yaml since it ends with a /.
https://pagure.io/modulemd/spec.yaml
I don't think this is a bug, it is the usual and expected behavior of HTML.
Going to close this since this is expected HTML behavior.
Feel free to re-open if you need more discussion or any help :)