Skip to content

Commit 88b6e1f

Browse files
committed
update
1 parent 894ef93 commit 88b6e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/repo/actions/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ func ViewWorkflowFile(ctx *context_module.Context) {
8787
}
8888
for _, entry := range entries {
8989
if entry.Name() == run.WorkflowID {
90-
ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, run.CommitSHA, rpath, run.WorkflowID))
90+
ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, run.CommitSHA, util.PathEscapeSegments(rpath), url.PathEscape(run.WorkflowID)))
9191
return
9292
}
9393
}
94-
ctx.JSONErrorNotFound()
94+
ctx.NotFound(nil)
9595
}
9696

9797
type LogCursor struct {

0 commit comments

Comments
 (0)