From 2c31922f58a8aa20d7fa6bfc95b53a350f90c798 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Tue, 7 Mar 2023 09:05:29 +0500 Subject: [PATCH] fix(web): add path to base in launch program url --- web/src/containers/Studio/internal/components/runMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/containers/Studio/internal/components/runMenu.tsx b/web/src/containers/Studio/internal/components/runMenu.tsx index 0ab05e9e..4ab3b8ff 100644 --- a/web/src/containers/Studio/internal/components/runMenu.tsx +++ b/web/src/containers/Studio/internal/components/runMenu.tsx @@ -31,7 +31,7 @@ const RunMenu = ({ handleRunBtnClick }: RunMenuProps) => { const launchProgram = () => { - const baseUrl = window.location.origin + const baseUrl = window.location.origin + window.location.pathname window.open(`${baseUrl}/SASjsApi/stp/execute?_program=${selectedFilePath}`) }