payload icon indicating copy to clipboard operation
payload copied to clipboard

Searching in a collection and navigating to another collection adds the search value to the new collection

Open Bobeta opened this issue 1 year ago • 4 comments

Link to reproduction

No response

Payload Version

beta v58

Node Version

v21

Next.js Version

v15-rc

Describe the Bug

Using v3 beta 58. If I search something in a collection and navigate to another collection, that search is added to that collection as well and I can see in the address bar "&search=test".

Reproduction Steps

Open up a collection, in the bar "Search by name" search for something, navigate to another collection.

Adapters and Plugins

No response

Bobeta avatar Jul 09 '24 18:07 Bobeta

This will be fixed in the next beta release, thanks a lot!

paulpopus avatar Jul 16 '24 15:07 paulpopus

I see changes are already merged with v3.0.0-beta.66 but I'm still facing this issue with 3.0.0-beta.68

https://github.com/user-attachments/assets/1688f4d7-c6f7-4491-9d93-ec37ed5ffb40

BhargavSuthar99 avatar Jul 31 '24 06:07 BhargavSuthar99

@BhargavSuthar99 Thanks for the video but I've not been able to reproduce this at all on my end. Neither in our test suites nor a standalone payload project. We have an automated test for this behaviour too which has been passing

Tested with:

"next": "15.0.0-canary.77",
"payload": "3.0.0-beta.71",

If you can provide a reproduction repo that would help a lot in isolating this problem!

paulpopus avatar Jul 31 '24 20:07 paulpopus

Reopening as it has situations where it's not fixed

paulpopus avatar Aug 14 '24 16:08 paulpopus

This will be fixed in https://github.com/payloadcms/payload/pull/8081 where I went through and made a wider set of changes

paulpopus avatar Sep 05 '24 21:09 paulpopus

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Sep 06 '24 22:09 github-actions[bot]

🚀 This is included in version v3.0.0-beta.101

github-actions[bot] avatar Sep 09 '24 20:09 github-actions[bot]