Skip to content

Commit

Permalink
Ensure root profile breadcrumb is getting the correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Sep 26, 2024
1 parent e7f1dce commit f625fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filament/Pages/Profile/ProfilePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getBreadcrumbs(): array
$breadcrumb = $this->isRootProfilePage() ? null : $this->getBreadcrumb();

return [
...(filled($rootPage) ? [$rootPage::getUrl() => app($rootPage)->getBreadcrumb()] : []),
...(filled($rootPage) ? [$rootPage::getUrl(panel: filament()->getId()) => app($rootPage)->getBreadcrumb()] : []),
...(filled($breadcrumb) ? [$breadcrumb] : []),
];
}
Expand Down

0 comments on commit f625fdb

Please sign in to comment.