mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
fix(search-modal): update project item href to use new URL structure
This commit is contained in:
@@ -72,7 +72,7 @@ function buildFlatList(results: SearchResults, term: string): ResultItem[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getItemHref(item: ResultItem): string {
|
function getItemHref(item: ResultItem): string {
|
||||||
if (item.kind === 'project') return `/dashboard?project=${item.data.id}`;
|
if (item.kind === 'project') return `/projects/${item.data.id}`;
|
||||||
if (item.kind === 'workspace') return `/workspaces/${item.data.id}`;
|
if (item.kind === 'workspace') return `/workspaces/${item.data.id}`;
|
||||||
return `/projects/${item.data.projectId}/videos/${item.data.id}`;
|
return `/projects/${item.data.projectId}/videos/${item.data.id}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user