diff --git a/src/components/Layout/Header.jsx b/src/components/Layout/Header.jsx
index b02b9e32..4d010d76 100644
--- a/src/components/Layout/Header.jsx
+++ b/src/components/Layout/Header.jsx
@@ -103,7 +103,8 @@ const Header = () => {
}, [projectNames]);
/** Check if current page id project details page */
- const isProjectPath = /^\/projects\/[a-f0-9-]{36}$/.test(location.pathname);
+ const isProjectPath = /^\/projects\/[a-f0-9-]{36}$/.test(location.pathname)
+ const isDirectoryPath = /^\/directory$/.test(location.pathname);
const handler = useCallback(
async (data) => {
@@ -162,11 +163,11 @@ const Header = () => {
>
{projectNames?.length > 0 && (
- {!isProjectPath && (
+ {(!isProjectPath && !isDirectoryPath) && (
<>