mirror of
https://github.com/makeplane/plane.git
synced 2026-02-07 14:40:01 -06:00
[WEB-4384] fix: power k page search redirection #7263
This commit is contained in:
committed by
GitHub
parent
072f2e2cac
commit
dee8f00a71
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user