From 6e1246cd1ba782f2a2f6887717f6c5f329d4b680 Mon Sep 17 00:00:00 2001 From: Filipe Pina <636320+fopina@users.noreply.github.com> Date: Tue, 20 Jul 2021 11:23:47 +0100 Subject: [PATCH] use relative API_URL (#1006) --- dkron/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dkron/ui.go b/dkron/ui.go index fd20fd701..9b61c35a0 100644 --- a/dkron/ui.go +++ b/dkron/ui.go @@ -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,