From e1339ae979309a593b7f7119643cc575154e875c Mon Sep 17 00:00:00 2001 From: Katharine Berry Date: Fri, 21 Jun 2019 09:50:41 -0700 Subject: [PATCH] Include host in kubectl command. --- prow/cmd/deck/static/prow/prow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prow/cmd/deck/static/prow/prow.ts b/prow/cmd/deck/static/prow/prow.ts index 198ba0d1fe63..2c50e7b9f572 100644 --- a/prow/cmd/deck/static/prow/prow.ts +++ b/prow/cmd/deck/static/prow/prow.ts @@ -658,7 +658,7 @@ function redraw(fz: FuzzySearch): void { } function createRerunCell(modal: HTMLElement, rerunElement: HTMLElement, prowjob: string): HTMLTableDataCellElement { - const url = `/rerun?prowjob=${prowjob}`; + const url = `${location.protocol}//${location.host}/rerun?prowjob=${prowjob}`; const c = document.createElement("td"); const i = icon.create("refresh", "Show instructions for rerunning this job"); const login = getCookieByName("github_login");