From 29ecc478220505135f985dfeb92362c8faded658 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 18 Sep 2025 19:31:27 +0300 Subject: [PATCH] Fix logic in isRootLevelPage function to correctly identify root level pages --- apps/web/hooks/telegram/use-back-button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/hooks/telegram/use-back-button.ts b/apps/web/hooks/telegram/use-back-button.ts index 3e9632d..cab58c8 100644 --- a/apps/web/hooks/telegram/use-back-button.ts +++ b/apps/web/hooks/telegram/use-back-button.ts @@ -34,7 +34,7 @@ export function useBackButton() { } function isRootLevelPage(pathname: string) { - if (exclude.includes(pathname)) return true; + if (exclude.includes(pathname)) return false; return pathname.split('/').filter(Boolean).length === 1; }