Skip to content

fix: adds routeParams to the req on views #12711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2025
Merged

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Jun 6, 2025

Prior to this change, routeParams were not added to the req on views. Noticed when attempting to access them inside of a baseListFilter.

I would have preferred to make the keys collectionSlug instead of collection but I decided it should align with what these functions are using:

paulpopus
paulpopus previously approved these changes Jun 9, 2025
@JarrodMFlesch JarrodMFlesch enabled auto-merge (squash) June 9, 2025 17:21
@JarrodMFlesch JarrodMFlesch merged commit 773e4ad into main Jun 9, 2025
77 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/add-route-params branch June 9, 2025 17:37
Copy link
Contributor

github-actions bot commented Jun 9, 2025

🚀 This is included in version v3.42.0

elliott-w pushed a commit to elliott-w/payload that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants