Skip to content

Commit

Permalink
feat: update redirect url from client search
Browse files Browse the repository at this point in the history
  • Loading branch information
fterra-encora committed Nov 18, 2024
1 parent 749303d commit 8179e7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/SearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import useSvg from "@/composables/useSvg";
// @ts-ignore
import Search16 from "@carbon/icons-vue/es/search/16";
import { greenDomain } from "@/CoreConstants";
import { greenDomain, featureFlags } from "@/CoreConstants";
import {
isAscii,
isMaxSizeMsg,
Expand Down Expand Up @@ -149,7 +149,9 @@ const searchResultToText = (searchResult: ClientSearchResult): string => {
const openClientDetails = (clientCode: string) => {
if (clientCode) {
const url = `https://${greenDomain}/int/client/client02MaintenanceAction.do?bean.clientNumber=${clientCode}`;
const url = featureFlags.STAFF_CLIENT_DETAIL
? `/clients/${clientCode}`
: `https://${greenDomain}/int/client/client02MaintenanceAction.do?bean.clientNumber=${clientCode}`;
window.open(url, "_blank", "noopener");
}
};
Expand Down

0 comments on commit 8179e7c

Please sign in to comment.