Skip to content

Commit

Permalink
fix(labs): filter out (group layouts) (QwikDev#5171)
Browse files Browse the repository at this point in the history
* fix(labs): filter out (group layouts)

* fixup! fix(labs): filter out (group layouts)

---------

Co-authored-by: Alexandru Tocar <commit@ueuie.dev>
  • Loading branch information
mhevery and Alexandru Tocar committed Sep 15, 2023
1 parent a18a45f commit bfe8040
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/qwik-labs/src/qwik-types/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('/');
};
Expand Down

0 comments on commit bfe8040

Please sign in to comment.