Fix logic in isRootLevelPage function to correctly identify root level pages
This commit is contained in:
parent
86f0d87c31
commit
29ecc47822
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user