Fix logic in isRootLevelPage function to correctly identify root level pages

This commit is contained in:
vchikalkin 2025-09-18 19:31:27 +03:00
parent 86f0d87c31
commit 29ecc47822

View File

@ -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;
}