From bfe8040f13d9970d36807aae6447e0c9d6e5fedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Fri, 15 Sep 2023 12:38:54 -0700 Subject: [PATCH] fix(labs): filter out (group layouts) (#5171) * fix(labs): filter out (group layouts) * fixup! fix(labs): filter out (group layouts) --------- Co-authored-by: Alexandru Tocar --- packages/qwik-labs/src/qwik-types/public-api.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/qwik-labs/src/qwik-types/public-api.ts b/packages/qwik-labs/src/qwik-types/public-api.ts index 8bc10938641..5afbbcff34b 100644 --- a/packages/qwik-labs/src/qwik-types/public-api.ts +++ b/packages/qwik-labs/src/qwik-types/public-api.ts @@ -15,6 +15,9 @@ export const untypedAppUrl = function appUrl( const value = params ? params[paramsPrefix + key] || params[key] : ''; path[i] = isSpread ? value : encodeURIComponent(value); } + if (segment.startsWith('(') && segment.endsWith(')')) { + path.splice(i, 1); + } } return path.join('/'); };