diff --git a/src/app/features/asset-list/components/connect-ledger-asset-button.tsx b/src/app/features/asset-list/components/connect-ledger-asset-button.tsx index bd02465c5c2..dae23f221fa 100644 --- a/src/app/features/asset-list/components/connect-ledger-asset-button.tsx +++ b/src/app/features/asset-list/components/connect-ledger-asset-button.tsx @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom'; import { styled } from 'leather-styles/jsx'; import { SupportedBlockchains } from '@shared/constants'; +import { RouteUrls } from '@shared/route-urls'; import { capitalize } from '@app/common/utils'; import { immediatelyAttemptLedgerConnection } from '@app/features/ledger/hooks/use-when-reattempt-ledger-connection'; @@ -19,7 +20,10 @@ export function ConnectLedgerAssetBtn({ chain }: ConnectLedgerAssetBtnProps) { const onClick = () => { navigate(`${chain}/connect-your-ledger`, { replace: true, - state: { [immediatelyAttemptLedgerConnection]: true }, + state: { + [immediatelyAttemptLedgerConnection]: true, + backgroundLocation: { pathname: RouteUrls.Home }, + }, }); }; return (