File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ func EditProject(ctx *context.Context) {
249
249
ctx .Data ["title" ] = p .Title
250
250
ctx .Data ["content" ] = p .Description
251
251
ctx .Data ["redirect" ] = ctx .FormString ("redirect" )
252
+ ctx .Data ["HomeLink" ] = ctx .ContextUser .HomeLink ()
252
253
253
254
ctx .HTML (http .StatusOK , tplProjectsNew )
254
255
}
Original file line number Diff line number Diff line change 50
50
<div class="ui divider"></div>
51
51
<div class="ui left">
52
52
{{if .PageIsEditProjects}}
53
- <a class="ui cancel button" href="{{AppSubUrl}}/{{.Org.Name }}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
53
+ <a class="ui cancel button" href="{{$.HomeLink }}/-/projects{{if eq .redirect "project"}}/{{.projectID}}{{end}}">
54
54
{{.locale.Tr "repo.milestones.cancel"}}
55
55
</a>
56
56
<button class="ui primary button">
You can’t perform that action at this time.
0 commit comments