Issue #9434 resolved

Add link to repo file in the wiki

Francesco Asnicar
created an issue

Hello, I'm writing a wiki in this repository: I tried to link in the wiki some files and directories present in the repository (e.g. "readme.txt" and "examples" directory). Unfortunately the URL link to the file has something like an hash that, I think, is related to the last commit. I don't want to keep a copy of the repository inside the "wiki" folder in order to link things because, in that case, I have to update the same repository in two different locations.

I was wondering if there is a way to link files and directories of the repository. If exists something like an automatic link that point to the last commit, without change the URL of the source file.

Thank you, Francesco Asnicar Master Student in Computer Science @ University of Trento

Comments (4)

  1. Michael Frauenholtz staff

    Hi Francesco,

    At this point you can use the branch name in place of the commit hash for your link. That way the link will always point to the latest commit on that branch. For example:

    I think that should work for your use case. We are planning on making this easier to use, and have Issue #8042 you can watch if you'd like.

  2. Francesco Asnicar reporter

    Thank you for your reply.

    I tried, as you suggested, to link the readme.txt file in both this ways:

    However, none of the two are working! Maybe I didn't get your suggestion, could you show me how to link this file?

    Thank you, Francesco Asnicar

  3. Log in to comment