Skip to content

[Bug?]: Routes should use encodeURIComponent when appending unnamed params #9839

@sean-ac

Description

@sean-ac

What's not working?

Doing something like:

routes.homePage({ search: 'home & garden' });

Produces a route:

/home?search=home%20&%20garden

Which is malformed due to missing encodeURIComponent.

I believe the bug is on this line:

https://github.com/redwoodjs/redwood/blob/v6.6.2/packages/router/src/util.ts#L340

How do we reproduce the bug?

No response

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions