Skip to content

Commit 6ffa761

Browse files
committed
Merge branch 'main' into feature/agentic
2 parents 71e0c13 + 90c2d1c commit 6ffa761

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/Main/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { PLUGIN_EVENTS } from "../../pluginEvents";
1111
import { useConfigSelector } from "../../store/config/useConfigSelector";
1212
import { useStore } from "../../store/useStore";
1313
import { trackingEvents as globalTrackingEvents } from "../../trackingEvents";
14+
import { isString } from "../../typeGuards/isString";
1415
import { isUndefined } from "../../typeGuards/isUndefined";
1516
import type { SendPluginEventPayload } from "../../types";
1617
import { ScopeChangeEvent } from "../../types";
@@ -69,10 +70,13 @@ const getUrlToNavigateFromRestApiCall = (scope: Scope): string | undefined => {
6970
}
7071

7172
if (!Object.values(TAB_IDS).includes(scope.context.payload.targetTab)) {
72-
return `/${scope.context.payload.targetTab}`;
73+
return;
7374
}
7475

75-
return `/${scope.context.payload.targetTab}`;
76+
const tab = scope.context.payload.targetTab;
77+
const path = scope.context.payload.targetTabPath;
78+
79+
return `/${[tab, path].filter(isString).join("/")}`;
7680
};
7781

7882
export const Main = () => {

src/components/common/App/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export interface ScopeWithCustomProtocolLinkContext
9797
event: ScopeChangeEvent;
9898
payload: {
9999
targetTab?: string;
100+
targetTabPath?: string;
100101
};
101102
};
102103
}

0 commit comments

Comments
 (0)