File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 70
70
</div>
71
71
{{end}}
72
72
<div class="fitted item mx-0">
73
- <a href="{{.BaseRepo.Link}}/find/{{.BranchName | EscapePound }}">
73
+ <a href="{{.BaseRepo.Link}}/find/{{.BranchName | PathEscapeSegments }}">
74
74
<button id="new-pull-request" class="ui compact basic button">{{.i18n.Tr "action.find_file"}}</button>
75
75
</a>
76
76
</div>
Original file line number Diff line number Diff line change 1
1
import { svg } from '../svg.js' ;
2
- const { AppSubUrl , csrf} = window . config ;
2
+ const { appSubUrl , csrf} = window . config ;
3
3
4
4
const threshold = 50 ;
5
5
let files = [ ] ;
@@ -134,7 +134,7 @@ async function fetchRepoFiles() {
134
134
const branchName = $ ( '#branchName' ) . val ( ) ;
135
135
const data = await $ . ajax ( {
136
136
type : 'GET' ,
137
- url : `${ AppSubUrl } /api/v1/repos/${ ownerName } /${ repoName } /find/${ branchName } ` ,
137
+ url : `${ appSubUrl } /api/v1/repos/${ ownerName } /${ repoName } /find/${ branchName } ` ,
138
138
headers : { 'X-Csrf-Token' : csrf }
139
139
} ) ;
140
140
if ( data ) {
You can’t perform that action at this time.
0 commit comments