Index: client/src/Dashboard/components/Navbar.jsx
===================================================================
--- client/src/Dashboard/components/Navbar.jsx	(revision f94102aeb5db902a22abd23cd5e8a3188d64e652)
+++ client/src/Dashboard/components/Navbar.jsx	(revision f450a5c47cb97738594f034d91b287335c9a505c)
@@ -18,18 +18,14 @@
     }
     if (
-      path === "/dashboard/forum" &&
+      (path === "/dashboard/forum" || path === "/dashboard/user-posts") &&
       (location.pathname === "/dashboard/forum" ||
         location.pathname === "/dashboard/forum/create-post" ||
         location.pathname === "/dashboard/create-post" ||
+        location.pathname === "/dashboard/user-posts" ||
         location.pathname.startsWith("/dashboard/forum-detail/"))
     ) {
       return true;
     }
-    if (
-      path === "/dashboard/user-posts" &&
-      location.pathname === "/dashboard/user-posts"
-    ) {
-      return true;
-    }
+
     if (
       path === "/dashboard/manage-posts" &&
