diff --git a/mailpoet/assets/js/src/common/top-bar/mailpoet-logo-responsive.tsx b/mailpoet/assets/js/src/common/top-bar/mailpoet-logo-responsive.tsx index 6897fdea95..eafc16707a 100644 --- a/mailpoet/assets/js/src/common/top-bar/mailpoet-logo-responsive.tsx +++ b/mailpoet/assets/js/src/common/top-bar/mailpoet-logo-responsive.tsx @@ -18,7 +18,10 @@ export function MailPoetLogoResponsive({ onClick, withLink = true }: Props) { navigateFallback = () => navigate('/'); } catch (e) { navigateFallback = () => { - window.location.href = `admin.php?page=${MailPoet.mainPageSlug}`; + window.location.href = `admin.php?page=${ + new URL(window.location.href).searchParams.get('page') ?? + MailPoet.mainPageSlug + }`; }; }