diff --git a/src/pages/home/sidebar/AllSettingsScreen.tsx b/src/pages/home/sidebar/AllSettingsScreen.tsx index 3f6d0ab6a318..a9e284329421 100644 --- a/src/pages/home/sidebar/AllSettingsScreen.tsx +++ b/src/pages/home/sidebar/AllSettingsScreen.tsx @@ -60,7 +60,7 @@ function AllSettingsScreen({policies, policyMembers}: AllSettingsScreenProps) { }, shouldShowRightIcon: true, iconRight: Expensicons.NewWindow, - link: CONST.OLDDOT_URLS.ADMIN_POLICIES_URL, + link: () => Link.buildOldDotURL(CONST.OLDDOT_URLS.ADMIN_POLICIES_URL), }, ] : []), @@ -72,13 +72,14 @@ function AllSettingsScreen({policies, policyMembers}: AllSettingsScreenProps) { }, shouldShowRightIcon: true, iconRight: Expensicons.NewWindow, - link: CONST.OLDDOT_URLS.ADMIN_DOMAINS_URL, + link: () => Link.buildOldDotURL(CONST.OLDDOT_URLS.ADMIN_DOMAINS_URL), }, ]; return baseMenuItems.map((item) => ({ key: item.translationKey, title: translate(item.translationKey as TranslationPaths), icon: item.icon, + link: item.link, iconRight: item.iconRight, onPress: item.action, shouldShowRightIcon: item.shouldShowRightIcon,