denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.17k stars 623 forks source link

feat: automatically decode url params #2311

Open deer opened 7 months ago

deer commented 7 months ago

closes https://github.com/denoland/fresh/issues/2310

I've maintained backwards compatibility by introducing a new automaticallyDecodeUrlParams flag to RouterOptions. Additionally, in case decoding fails, it falls back to using the encoded value.