]> source.dussan.org Git - gitea.git/commit
fix wrong file link in code search page (#15466)
authora1012112796 <1012112796@qq.com>
Wed, 14 Apr 2021 15:59:42 +0000 (23:59 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Apr 2021 15:59:42 +0000 (17:59 +0200)
commit08ba895c2b871c309e7787110fbde21214a3d684
tree959d688e5550511365f9ec9188d270bde1a3e2b8
parent1ee776970ac102121871b184b965c30103a2da71
fix wrong file link in code search page (#15466)

in previous the grenrated link is
``testg/testrepo/src/commit/....``
which is not right.

the right version is ``/testg/testrepo/.......``
(start wiht ``/``)
or ``http://127.0.0.1:3000/xxxxx`` (full link)

to make it hase same result with explore page
I choose the secound style.

fix #15438

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: 6543 <6543@obermui.de>
routers/repo/search.go