Skip to content

fix: [GROOT-1314] fix broken pagination for taxonomy requests #2701

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LiamStokingerContentful
Copy link
Contributor

Summary

After introducing the taxonomy plain client to the user interface, we found that paginated requests were broken.

This is because on next page requests, we were parsing query params manually and passing an empty object to axios as query params. When this happens, axios automatically appends a ? to the end of the "base" url. The "base" url in our case already contains query params, so this was leading to the last url param containing an additional ?, breaking requests.

Description

This PR makes it so that in these scenarios, we pass undefined instead of {} to axios.

Motivation and Context

Screen.Recording.2025-07-18.at.13.22.37.mov

@LiamStokingerContentful LiamStokingerContentful requested a review from a team as a code owner July 18, 2025 11:23
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.

2 participants