We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac5e0a commit d297a1bCopy full SHA for d297a1b
packages/ui/src/utilities/routeResolution/isPathMatchingRoute.ts
@@ -35,6 +35,12 @@ export const isPathMatchingRoute = ({
35
}
36
37
if (!exact) {
38
- return viewRoute.startsWith(currentRoute)
+ if (!currentRoute.startsWith(viewRoute)) {
39
+ return false
40
+ }
41
+
42
+ const remainingPath = currentRoute.slice(viewRoute.length)
43
44
+ return remainingPath === '' || remainingPath.startsWith('/')
45
46
0 commit comments