Skip to content

fix(portal): show real folder path for search-opened file preview (IK5KFE) - #2256

Closed
likaiaki wants to merge 1 commit into
feat/2.5.0-sgfrom
fix/IK5KFE-search-file-path
Closed

fix(portal): show real folder path for search-opened file preview (IK5KFE)#2256
likaiaki wants to merge 1 commit into
feat/2.5.0-sgfrom
fix/IK5KFE-search-file-path

Conversation

@likaiaki

@likaiaki likaiaki commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Backend: search_space_children now resolves folder_path / source_path like other portal file listings.
  • Frontend: preview breadcrumb (documentPath) uses file metadata or current folder path instead of stopping at the knowledge space name.

Test plan

  • npx jest src/pages/knowledge/portal/utils.test.ts -t buildPortalDocumentPath --no-watchman --coverage=false
  • npx jest src/pages/knowledge/portal/PortalKnowledgeWorkbench.test.tsx -t "shows folder path when previewing" --no-watchman --coverage=false
  • Manual: search in knowledge portal → open file in subfolder → verify header path shows space + folder

Gitee

  • Issue: IK5KFE
  • State: unchanged (per team policy)

Related

Made with Cursor

…5KFE)

Enrich in-space search results with resolved folder/source paths on the
backend and build preview breadcrumbs from file metadata instead of only
the knowledge space name.

Co-authored-by: Cursor <cursoragent@cursor.com>
@likaiaki likaiaki closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant