Skip to content
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

Params in object are now parsed as json instead of query param keys #475

Open
Ken-vdE opened this issue Feb 14, 2025 · 0 comments
Open

Params in object are now parsed as json instead of query param keys #475

Ken-vdE opened this issue Feb 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Ken-vdE
Copy link

Ken-vdE commented Feb 14, 2025

Environment

node 22
nuxt 3.15.4

Reproduction

See 0d84f7b#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351L72

Run this:

$fetch('some-url', {
    baseURL: "http://some-domain.test",
    params: {
        filter: {
            site: undefined,
            "url:is": "something"
        }
    }
})

Describe the bug

See 0d84f7b#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351L72

The URL is then parsed into some-url?filter=%7B%22url:is%22:%22something%22%7D (some-url?filter={"url:is":"something"})
and it previously was correct: some-url?filter%5Burl:is%5D=something (some-url?filter[url:is]=something)

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant