diff --git a/web/src/containers/Studio/internal/components/runMenu.tsx b/web/src/containers/Studio/internal/components/runMenu.tsx index 4ab3b8f..9c9c4ae 100644 --- a/web/src/containers/Studio/internal/components/runMenu.tsx +++ b/web/src/containers/Studio/internal/components/runMenu.tsx @@ -31,7 +31,10 @@ const RunMenu = ({ handleRunBtnClick }: RunMenuProps) => { const launchProgram = () => { - const baseUrl = window.location.origin + window.location.pathname + const pathName = + window.location.pathname === '/' ? '' : window.location.pathname + const baseUrl = window.location.origin + pathName + window.open(`${baseUrl}/SASjsApi/stp/execute?_program=${selectedFilePath}`) }