[WEB-4384] fix: power k page search redirection #7263
This commit is contained in:
parent
072f2e2cac
commit
dee8f00a71
1 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,9 @@ export const commandGroups: TCommandGroups = {
|
|||
path: (page: IWorkspacePageSearchResult, projectId: string | undefined) => {
|
||||
let redirectProjectId = page?.project_ids?.[0];
|
||||
if (!!projectId && page?.project_ids?.includes(projectId)) redirectProjectId = projectId;
|
||||
return `/${page?.workspace__slug}/projects/${redirectProjectId}/pages/${page?.id}`;
|
||||
return redirectProjectId
|
||||
? `/${page?.workspace__slug}/projects/${redirectProjectId}/pages/${page?.id}`
|
||||
: `/${page?.workspace__slug}/pages/${page?.id}`;
|
||||
},
|
||||
title: "Pages",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue