From: Eduardo San Martin Morote Date: Tue, 18 Nov 2025 15:52:24 +0000 (+0100) Subject: fix(experimental): isActive with custom params X-Git-Tag: v4.6.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edca66c6da5650aaa98f47ff9f4c125bbb05bb7f;p=thirdparty%2Fvuejs%2Frouter.git fix(experimental): isActive with custom params --- diff --git a/packages/router/src/RouterLink.ts b/packages/router/src/RouterLink.ts index 3012faaf2..06cb083c0 100644 --- a/packages/router/src/RouterLink.ts +++ b/packages/router/src/RouterLink.ts @@ -442,7 +442,9 @@ function includesParams( if ( !isArray(outerValue) || outerValue.length !== innerValue.length || - innerValue.some((value, i) => value !== outerValue[i]) + innerValue.some( + (value, i) => value.valueOf() !== outerValue[i].valueOf() + ) ) return false } diff --git a/packages/router/src/location.ts b/packages/router/src/location.ts index 1bb47078a..af97c5d99 100644 --- a/packages/router/src/location.ts +++ b/packages/router/src/location.ts @@ -219,7 +219,7 @@ function isSameRouteLocationParamsValue( ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) - : a === b + : a?.valueOf() === b?.valueOf() } /**