Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(persons): show the person in the /persons/<uuid> breadcrumb (#112277)

Adam Leith4fe72a8ba396
diff --git a/products/persons/frontend/logics/personsLogic.tsx b/products/persons/frontend/logics/personsLogic.tsx
index 4e7589866b5c..3b94a40d8f2a 100644
--- a/products/persons/frontend/logics/personsLogic.tsx
+++ b/products/persons/frontend/logics/personsLogic.tsx
@@ -323,7 +323,8 @@ export interface personsLogicMeta {
hash: string
pathname: string
search: string
- }
+ },
+ featureFlags: FeatureFlagsSet
) => Breadcrumb[]
sidePanelContext: (person: PersonType | null) => SidePanelSceneContext
exporterProps: (listFilters: PersonListParams, arg: any) => TriggerExportProps[]
@@ -613,16 +614,19 @@ export const personsLogic = kea<personsLogicType>([
(feedEnabled: boolean) => (feedEnabled ? PersonsTabType.PROFILE : PersonsTabType.PROPERTIES),
],
breadcrumbs: [
- (s) => [s.person, router.selectors.location],
+ (s) => [s.person, router.selectors.location, s.featureFlags],
(
person: PersonType | null,
location: {
hash: string
pathname: string
search: string
- }
+ },
+ featureFlags: FeatureFlagsSet
): Breadcrumb[] => {
- const showPerson = person && location.pathname.match(/\/person\/.+/)
+ // The Today rail names recent persons from this crumb, and opens them by UUID under `/persons/`.
+ const personPath = featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV] ? /\/persons?\/.+/ : /\/person\/.+/
+ const showPerson = person && location.pathname.match(personPath)
const breadcrumbs: Breadcrumb[] = [
{
key: Scene.Persons,