Skip to content

Commit

Permalink
use relative API_URL (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
fopina committed Jul 20, 2021
1 parent a9610ae commit 6e1246c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkron/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (h *HTTPTransport) UI(r *gin.RouterGroup) {
ln = l.Name
}
ctx.HTML(http.StatusOK, "index.html", gin.H{
"DKRON_API_URL": fmt.Sprintf("/%s", apiPathPrefix),
"DKRON_API_URL": fmt.Sprintf("../%s", apiPathPrefix),
"DKRON_LEADER": ln,
"DKRON_TOTAL_JOBS": totalJobs,
"DKRON_FAILED_JOBS": failedJobs,
Expand Down

0 comments on commit 6e1246c

Please sign in to comment.