diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 2499344..334bade 100644 --- a/src/app/(user)/user/profiles/page.tsx +++ b/src/app/(user)/user/profiles/page.tsx @@ -687,7 +687,7 @@ function ProfilesPageContent() {
setSearchQuery(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && handleSearch()} diff --git a/src/components/layout/CommonHeader.tsx b/src/components/layout/CommonHeader.tsx index 4108fcd..f42c966 100644 --- a/src/components/layout/CommonHeader.tsx +++ b/src/components/layout/CommonHeader.tsx @@ -53,10 +53,8 @@ export function CommonHeader() { // Use fetched profile image, fallback to session image const userImage = profileImage || session?.user?.image; - // Logo destination based on role: - // - AGENT logged in → Agent Listing Page (/user/profiles) so they can browse the directory - // - everyone else → /user/dashboard - const dashboardLink = userRole === 'AGENT' ? '/user/profiles' : '/user/dashboard'; + // Logo destination — always lands on the user home / dashboard regardless of role. + const dashboardLink = '/user/dashboard'; return (
@@ -231,8 +229,8 @@ export function CommonHeader() { className="flex items-center gap-3 px-4 py-3 border-b border-black/10 hover:bg-black/5 transition-colors" onClick={() => setShowProfileMenu(false)} > - Edit Page -

Edit Page

+ Edit profile +

Edit profile

)}