payload icon indicating copy to clipboard operation
payload copied to clipboard

Navigation breadcrumbs display incorect path after browsing items of a related upload collection

Open azivkovi opened this issue 2 months ago • 0 comments

Describe the Bug.

When opening an item (either to create or edit) the breadcrumbs are correct, but after opening an upload collection from there (e.g. insert media or file) and returning, breadcrumbs show path of that opened collection. This doesn't happen when opening related collections that are not of type upload.

https://github.com/user-attachments/assets/eedcd18d-07d9-4d7f-a3d1-54e14c4b101f

Reproduction Steps

  1. Start creating or editing an item of a collection that has a type upload relationship field
  2. Click "Choose from existing" on that relationship field
  3. Observe the navigation breadcrumbs that now point to that upload collection

Environment Info

Binaries:
  Node: 22.9.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  payload: 3.2.2
  next: 15.0.0
  @payloadcms/email-nodemailer: 3.2.2
  @payloadcms/graphql: 3.2.2
  @payloadcms/next/utilities: 3.2.2
  @payloadcms/payload-cloud: 3.2.2
  @payloadcms/richtext-lexical: 3.2.2
  @payloadcms/translations: 3.2.2
  @payloadcms/ui/shared: 3.2.2
  react: 19.0.0-rc-65a56d0e-20241020
  react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 8076
  Available CPU cores: 4

azivkovi avatar Dec 01 '24 23:12 azivkovi