Skip to content

Commit

Permalink
fix(home-page): update generate-links
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Feb 4, 2025
1 parent d84ca10 commit a873b61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/pages/home/components/generate-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ export function generateLinkFromAllDatas(
};

let basePath = "";

if (productions?.length > 0 && message === undefined) {
basePath = "/scanr-apioperations";
} else if (objectId) {
basePath = "/scanr-contributionPage";
} else if (fromApplication) {
basePath = "/scanr-contact";
} else if (fromApplication && basePathMap.contacts[fromApplication]) {
basePath = basePathMap.contacts[fromApplication];
} else {
basePath = (basePathMap[collectionName] as string) || "";
}
Expand Down

0 comments on commit a873b61

Please sign in to comment.