Links in `README.md` to dirs - GitHub vs HF Hub

Hugging Face Hub does not support linking to a directory in the same repository in a markdown file, such a link gives a 404 error.

See for example the ./subdir link in here: README.md · juhoinkinen/github-vs-hfhub at main

The behaviour is different on GitHub; the./subdir link works: GitHub - juhoinkinen/github-vs-hfhub

It’s not a big issue, but optimally the behaviour would be the same in both platforms. Noticed this when duplicating a repo from GitHub to HF Hub.

2 Likes

Confirming that this seems to be actually an issue!

1 Like

It would be most convenient if blob were redirected to tree…?
juhoinkinen/github-vs-hfhub at main # Work
https://huggingface.co/datasets/juhoinkinen/github-vs-hfhub/blob/main/subdir # Doesn’t Work