From ab4c9347ff37c063191f366fb3c2169133c2d7f7 Mon Sep 17 00:00:00 2001 From: dtodd-edd <95440583+dtodd-edd@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:49:02 -0700 Subject: [PATCH] Updated Transline UIO Home Link --- components/TransLine.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/TransLine.tsx b/components/TransLine.tsx index ff151a1..bf0150c 100644 --- a/components/TransLine.tsx +++ b/components/TransLine.tsx @@ -17,7 +17,9 @@ function resolveUrl(link: I18nString, userArrivedFromUioMobile: boolean) { // If the link is for UIO homepage or UIO landing page, do a direct getUrl() lookup. // Do not pass the looked up url through t() because t() will mangle the url. if (link === 'uio-home') { - const uioHomeLink = userArrivedFromUioMobile ? getUrl('uio-mobile-home') : getUrl('uio-desktop-home') + const uioHomeLink = userArrivedFromUioMobile + ? getUrl('uio-mobile-home', undefined, i18n?.language) + : getUrl('uio-desktop-home', undefined, i18n?.language) if (uioHomeLink) { return uioHomeLink } @@ -25,7 +27,7 @@ function resolveUrl(link: I18nString, userArrivedFromUioMobile: boolean) { // Special case for UIO landing page links. else if (link === 'uio-landing-page') { const uioLandingPageLink = userArrivedFromUioMobile - ? getUrl('uio-mobile-landing-page') + ? getUrl('uio-mobile-landing-page', undefined, i18n?.language) : getUrl('uio-desktop-landing-page', undefined, i18n?.language) if (uioLandingPageLink) { return uioLandingPageLink