Skip to content

Commit ba87d69

Browse files
authored
Merge pull request #111 from kaleido-io/run
Fix URL building in UI
2 parents 6a6f014 + f167797 commit ba87d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/Buttons/RunButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export const RunButton: React.FC<Props> = ({ endpoint, payload, disabled }) => {
5858
if (!isBlob) {
5959
reqDetails.headers = { 'Content-Type': 'application/json' };
6060
}
61-
const postUrlPrefix = new URL(
61+
const url = new URL(
6262
`${window.location.protocol}//${window.location.hostname}:${window.location.port}`
6363
);
64-
const url = new URL(`${postUrlPrefix}${postEndpoint}`);
64+
url.pathname = postEndpoint;
6565
const currentNamespace = localStorage.getItem(
6666
SANDBOX_LOCAL_STORAGE_ITEM_NAME
6767
);

0 commit comments

Comments
 (0)