From c8b31cecc7242414da4491fa370a90b79816f05c Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 2 Feb 2024 18:44:01 +0100 Subject: [PATCH] fix show link for direct execution --- ccp/js/executionformcontroller.js | 2 +- ccp/js/executionhistorycontroller.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 014c3b0..6270cc2 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -406,7 +406,7 @@ class CCPExecutionForm extends HTMLElement{ }, { target: "a[name=direct_link_method]", - apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.path + "?method=" + d.id + apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?method=" + d.id } ] } diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index a1fd1cc..5b9f544 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -119,7 +119,7 @@ class CCPExecutionHistory extends HTMLElement { -
+
@@ -667,7 +668,7 @@ class CCPExecutionHistory extends HTMLElement { }, { target : "a[name=direct_link_execution]", - apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.path + "?execution=" + d.id + apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?execution=" + d.id }, { target : "div[name=logterminalcontainer]",