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('/'); };