Skip to content

Commit

Permalink
Admin: don't escape open project subpath for scheduled reports (#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
begelundmuller authored Nov 8, 2023
1 parent 03f9bdf commit 80069de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ func newURLRegistry(opts *Options) *externalURLs {
}

func (u *externalURLs) reportOpen(org, project, projectSubpath string) string {
return urlutil.MustJoinURL(u.frontend, org, project, projectSubpath)
res := urlutil.MustJoinURL(u.frontend, org, project)
res += projectSubpath // Need to do an unsafe concat to provide flexibility, e.g. to avoid escaping '?'
return res
}

func (u *externalURLs) reportExport(org, project, report string) string {
Expand Down

0 comments on commit 80069de

Please sign in to comment.