From 52c38c3082c8862a52459a76eb4268e7a3a38b6a Mon Sep 17 00:00:00 2001 From: nitin <142569587+ehconitin@users.noreply.github.com> Date: Thu, 15 May 2025 13:14:37 +0530 Subject: [PATCH] Correct default fallback logo path in Logo component (#12053) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #11849 The Logo component’s fallback URL was pointing to `/icons/android/android-launchericon-192-192.png`, but the asset lives under `/images/icons/....`. This updates defaultPrimaryLogoUrl to use the correct `/images/icons/android/android-launchericon-192-192.png` path, restoring the default logo display when no primaryLogo prop is provided. --- packages/twenty-front/src/modules/auth/components/Logo.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/twenty-front/src/modules/auth/components/Logo.tsx b/packages/twenty-front/src/modules/auth/components/Logo.tsx index 2efe26719..d938daf09 100644 --- a/packages/twenty-front/src/modules/auth/components/Logo.tsx +++ b/packages/twenty-front/src/modules/auth/components/Logo.tsx @@ -1,10 +1,10 @@ import styled from '@emotion/styled'; import { isNonEmptyString } from '@sniptt/guards'; +import { getImageAbsoluteURI } from 'twenty-shared/utils'; +import { UndecoratedLink } from 'twenty-ui/navigation'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; import { useRedirectToDefaultDomain } from '~/modules/domain-manager/hooks/useRedirectToDefaultDomain'; import { AppPath } from '~/modules/types/AppPath'; -import { UndecoratedLink } from 'twenty-ui/navigation'; -import { getImageAbsoluteURI } from 'twenty-shared/utils'; type LogoProps = { primaryLogo?: string | null; @@ -49,7 +49,7 @@ const StyledPrimaryLogo = styled.div<{ src: string }>` export const Logo = (props: LogoProps) => { const { redirectToDefaultDomain } = useRedirectToDefaultDomain(); - const defaultPrimaryLogoUrl = `${window.location.origin}/icons/android/android-launchericon-192-192.png`; + const defaultPrimaryLogoUrl = `${window.location.origin}/images/icons/android/android-launchericon-192-192.png`; const primaryLogoUrl = getImageAbsoluteURI({ imageUrl: props.primaryLogo ?? defaultPrimaryLogoUrl,