Skip to content

[BUG] Query parameter values containing special characters (&, =, +) are corrupted in production #1134

@mary-ext

Description

@mary-ext

Describe the bug

I've noticed that requests with a query parameter like ?input=%7B%22search%22%3A%22Blake+%26+Mortimer%22%7D would randomly fail, it seems that OpenNext might not be accounting for the URL already having decoded query parameters?

Steps to reproduce

  1. Clone this repository: https://github.com/mary-ext/repro-opennext-cloudflare-qs
  2. Run pnpm dev, click on test query
  3. Run pnpm preview, click on test query

Expected behavior

Queries shouldn't throw an error

@opennextjs/cloudflare version

1.16.5

Wrangler version

4.67.0

next info output

Using vars defined in .dev.vars
/bin/sh: line 1: yarn: command not found

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Mon, 16 Feb 2026 18:22:29 +0000
  Available memory (MB): 31160
  Available CPU cores: 16
Binaries:
  Node: 22.22.0
  npm: 10.9.4
  Yarn: N/A
  pnpm: 10.30.0
Relevant Packages:
  next: 16.1.6 // Latest available version is detected (16.1.6).
  eslint-config-next: N/A
  react: 19.2.4
  react-dom: 19.2.4
  typescript: 5.9.3
Next.js Config:
  output: N/A

(next info seems to hang)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions