diff --git a/routers/web/repo/actions/view.go b/routers/web/repo/actions/view.go index 7ad4f95a78..b5aceaf2ac 100644 --- a/routers/web/repo/actions/view.go +++ b/routers/web/repo/actions/view.go @@ -87,7 +87,7 @@ func ViewWorkflowFile(ctx *context_module.Context) { } for _, entry := range entries { if entry.Name() == 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))) + ctx.Redirect(fmt.Sprintf("%s/src/commit/%s/%s/%s", ctx.Repo.RepoLink, url.PathEscape(run.CommitSHA), util.PathEscapeSegments(rpath), url.PathEscapeSegments(run.WorkflowID))) return } }