From 566418f7c46281d6b34d6c655a757b35adccbda0 Mon Sep 17 00:00:00 2001 From: Artem Shinkaruk Date: Thu, 15 May 2025 12:20:05 +0300 Subject: [PATCH] fix(core/router): fixed an error when GET params where included into the route params --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/core/router/modules/helpers.ts | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bce3abecb7..dc4e41db5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ Changelog _Note: Gaps between patch versions are faulty, broken or test releases._ +## v3.75.2 (2025-05-15) + +#### :bug: Bug Fix + +* Fixed an error when GET params where included into the route params `core/router` + ## v3.75.1 (2024-11-26) #### :bug: Bug Fix diff --git a/package.json b/package.json index f73e2b81a6..561ccef5ef 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/core/index.js", "typings": "index.d.ts", "license": "MIT", - "version": "3.75.1", + "version": "3.75.2", "author": { "name": "kobezzza", "email": "kobezzza@gmail.com", diff --git a/src/core/router/modules/helpers.ts b/src/core/router/modules/helpers.ts index da5e53ba39..668f2c392b 100644 --- a/src/core/router/modules/helpers.ts +++ b/src/core/router/modules/helpers.ts @@ -265,7 +265,8 @@ export function getRoute(ref: string, routes: RouteBlueprints, opts: AdditionalG } const - params = route.rgxp?.exec(initialRef); + queryIndex = initialRef.indexOf('?'), + params = route.rgxp?.exec(queryIndex >= 0 ? initialRef.slice(0, queryIndex) : initialRef); if (params == null) { return;