]> source.dussan.org Git - gitea.git/commit
fix wrong file link in code search page (#15466) (#15486)
authora1012112796 <1012112796@qq.com>
Thu, 15 Apr 2021 09:04:25 +0000 (17:04 +0800)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 09:04:25 +0000 (12:04 +0300)
commitb28c3245cc1ccdc6ac76ed879c67bfd926678062
tree2b74a1fa1db12cf3e3cbf0c403a53500a321eabc
parentddfb72916850cc81f0d208d690fd451c9ca31995
fix wrong file link in code search page (#15466) (#15486)

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>
Co-authored-by: 6543 <6543@obermui.de>
routers/repo/search.go