0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-20 16:58:31 +02:00
This commit is contained in:
NorthRealm 2025-05-28 11:40:48 +08:00
parent 894ef938af
commit d7be8677d4

View File

@ -87,11 +87,11 @@ func ViewWorkflowFile(ctx *context_module.Context) {
} }
for _, entry := range entries { for _, entry := range entries {
if entry.Name() == run.WorkflowID { if entry.Name() == run.WorkflowID {
ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, run.CommitSHA, rpath, run.WorkflowID)) ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, url.PathEscape(run.CommitSHA), util.PathEscapeSegments(rpath), url.PathEscape(run.WorkflowID)))
return return
} }
} }
ctx.JSONErrorNotFound() ctx.NotFound(nil)
} }
type LogCursor struct { type LogCursor struct {