如果自述通过回购自动查看,自述文件中的相对链接断开 [英] Relative link in readme broken if readme viewed automatically by repo
问题描述
我在github上有一个回购组织。例如:
MYORGANIZATION / MyRepository
回购包含一个README.md文件。
在这个README.md文件中,我有一个链接,所以另一个.md文件与README.md位于相同的文件夹中:
/README.md
/anotherMarkdown.md
README.md包含一个相对链接(如下所述:https://help.github.com/articles/relative-links-in-readmes/ )到另一个Markdown .md:
[这是我的相对链接](anotherMarkdown.md)
如果我使用此URL打开自述文件,则相对链接将起作用:
https://github.com/MYORGANIZATION/MyRepository/blob/master/README.md
链接指向:
https://github.com/MYORGANIZATION/MyRepository/blob/master/anotherMarkdown.md
如果我打开Repository-URL https://github.com/MYORGANIZATION/MyRepository/ 显示reposiutory的根目录,以及文件列表下方的自述文件。
但上述相关链接现在已损坏(提供404)并指向:
https://github.com/MYORGANIZATION/MyRepository/anotherMarkdown.md
这是预期的行为吗?我的链接有什么问题?
解决方案似乎被github修复。再次在我身边工作。
I have a repo as part of a organization on github. For instance:
MYORGANIZATION/MyRepository
The repo contains a README.md file.
Within this README.md file I have a link so another .md file which is located in the same repo ind the same folder as README.md:
/README.md /anotherMarkdown.md
The README.md contains a relative link (as described here: https://help.github.com/articles/relative-links-in-readmes/) to anotherMarkdown.md:
[This is my relative link](anotherMarkdown.md)
If I open the readme with this URL, the relative link works:
https://github.com/MYORGANIZATION/MyRepository/blob/master/README.md
The links directs to:
https://github.com/MYORGANIZATION/MyRepository/blob/master/anotherMarkdown.md
If I open the Repository-URL https://github.com/MYORGANIZATION/MyRepository/ the root-directory of reposiutory is shown, as well as the readme below the file-list.
BUT the above described relative link is now broken (gives 404) and directs to:
https://github.com/MYORGANIZATION/MyRepository/anotherMarkdown.md
Is this an expected behavior? What is wrong with my link?
解决方案Seems to be fixed by github. Works again on my side.
这篇关于如果自述通过回购自动查看,自述文件中的相对链接断开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!