payload
payload copied to clipboard
Navigation breadcrumbs display incorect path after browsing items of a related upload collection
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
- Start creating or editing an item of a collection that has a type upload relationship field
- Click "Choose from existing" on that relationship field
- 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