From 21e0a883bccda9ac183bf2d9a0778b59bf05a535 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sat, 19 Feb 2022 02:00:05 +0100 Subject: [PATCH] Fix parsing of nested objects in dot syntax in router.parseQuery --- packages/web-runtime/src/router/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/web-runtime/src/router/index.js b/packages/web-runtime/src/router/index.js index 51f11047481..ac2f7da8ca4 100644 --- a/packages/web-runtime/src/router/index.js +++ b/packages/web-runtime/src/router/index.js @@ -18,7 +18,9 @@ function $gettext(msg) { const router = new Router({ // mode: 'history', parseQuery(query) { - return qs.parse(query) + return qs.parse(query, { + allowDots: true + }) }, stringifyQuery(obj) { return qs.stringify(obj, {