-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
Let's say given a route "/book/[name]" in a waku app, when we visit a path containing a single quote ', for example, "/book/Webster's%20Dictionary", the page will crash with a message "Invalid element: route:/book/Webster's%20Dictionary".
Reproduction: https://stackblitz.com/edit/stackblitz-starters-yjfjlhke
Additionally, the route params recieved in the page entry component are not decoded with decodeURIComponent.
export default function Book({ name }) {
// We got `Webster's%20Dictionary` rather than `Webster's Dictionary` here
return <div>{name}</div>
}Not sure is this behaviour by design or not? As I tested, Next.js' app router doesn't decode it too, but its legacy page router will decode it when calling useRouter to retrieve the route params.
Metadata
Metadata
Assignees
Labels
No labels