diff options
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/ProfilePageController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Controller/ProfilePageController.php b/core/Controller/ProfilePageController.php index f8d9053edfa..e32f54a8ff7 100644 --- a/core/Controller/ProfilePageController.php +++ b/core/Controller/ProfilePageController.php @@ -106,7 +106,9 @@ class ProfilePageController extends Controller { $this->profileManager->getProfileFields($targetUser, $visitingUser), ); - $this->navigationManager->setActiveEntry('profile'); + if ($targetUser === $visitingUser) { + $this->navigationManager->setActiveEntry('profile'); + } $this->eventDispatcher->dispatchTyped(new BeforeTemplateRenderedEvent($targetUserId)); |