gitblit icon indicating copy to clipboard operation
gitblit copied to clipboard

Link to other markdown file in repo

Open ChrisBlankDe opened this issue 7 years ago • 1 comments

Hi, how can we Link other documents from the repo in the Readme? I only know how to do a general link like [Another Readme](http://ourgit.intern/doc/?r=Alpha/AwesomeTool.git&f=TheOtherReadme.md&h=master) Can we do this links in a better way? Would be perfect if the link dynamically change based on branch so the link in the master branch opens the other document from the master and the link in the develop branch opens the other document from the develop branch.

I hope i could make clear what i meant.

ChrisBlankDe avatar Aug 15 '17 16:08 ChrisBlankDe

It seems relative links are possible (https://github.com/gitblit/gitblit/issues/620#issuecomment-130273195).

However, if I create a link [Another doc page](AnotherDocPage.md) the link points to: http://ourgit.intern/docs/AnotherDocPage.md

when the correct should be: http://ourgit.intern/doc/?r=myrepo.git&h=master&f=AnotherDocPage.md

So, for now, I'm using: [Another doc page](../doc/?r=myrepo.git&h=master&f=AnotherDocPage.md to make it work, but it would be nice to know if there is a way to simplify the link 😅

fmilani avatar Jan 11 '18 21:01 fmilani