Skip to content

Commit

Permalink
fix(spaces): append spaceId for essentials links and don't double loa…
Browse files Browse the repository at this point in the history
…dapp
  • Loading branch information
Christie Baker authored and Christie Baker committed Oct 14, 2024
1 parent a01891a commit 6d41bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/spaces/src/linkHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export const openLink = async (space, { akaname, payerSpaceId }) => {
await updateTopApps(space, akaname);

const target = getTarget(space.link.target);
const url = !isAbsoluteUrl(space.link.url) || /(test|qa(p?)-)?essentials\.availity\.com/.test(space.link.url)
const url = !isAbsoluteUrl(space.link.url)
? getUrl(updateUrl(space.link.url, 'spaceId', payerSpaceId || space.parents?.[0]?.id), false, false)
: space.link.url;
: /(test|qa(p?)-)?essentials\.availity\.com/.test(space.link.url) ? updateUrl(space.link.url, 'spaceId', payerSpaceId || space.parents?.[0]?.id) : space.link.url;

window.open(url, target);
};
Expand Down

0 comments on commit 6d41bf5

Please sign in to comment.