Skip to content

Commit

Permalink
fix: a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed May 17, 2024
1 parent 1bff90b commit 24a69c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik-city/runtime/src/route-matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function recursiveScan(
}
let pathIdx = pathLength;
const sep = suffix + '/';
let depthWatchdog = 5;
let depthWatchdog = 8;
while (pathIdx >= pathStart && depthWatchdog--) {
const match = matchRoutePart(route, routeStart, routeLength, path, pathIdx, pathLength);
if (match) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { useLocation } from '@builder.io/qwik-city';
import { component$ } from '@builder.io/qwik';

export default component$(() => {
const { url } = useLocation();

return <div>Working nesting with ID {url.pathname}</div>;
});

0 comments on commit 24a69c1

Please sign in to comment.