Skip to content

Commit

Permalink
Merge pull request #1478 from Availity/feature/spaceLink
Browse files Browse the repository at this point in the history
fix(spaces): append spaceId for essentials links and don't double loadapp
  • Loading branch information
christieb7007 authored Oct 15, 2024
2 parents a01891a + 6d41bf5 commit 27ddc19
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 27ddc19

Please sign in to comment.