Skip to content

Commit

Permalink
fix controller EE link
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Apr 14, 2024
1 parent 3d7c993 commit 31223da
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/utilities/get-repo-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function getContainersURL({

// returns controller UI URL for the EE add form, prefilling a chosen image from hub
export function controllerURL({
image,
image: name,
tag,
digest,
}: {
Expand All @@ -44,14 +44,8 @@ export function controllerURL({
tag = 'latest';
}

const imageUrl = encodeURIComponent(
getContainersURL({
name: image,
tag,
digest,
}),
);
const imageURL = encodeURIComponent(getContainersURL({ name, tag, digest }));
const origin = window.location.origin;

// TODO update to 2.5 link
return `${window.location.origin}/#/execution_environments/add?image=${imageUrl}`;
return `${origin}/execution/infrastructure/execution-environments/add?image=${imageURL}`;
}

0 comments on commit 31223da

Please sign in to comment.