Skip to content

Commit

Permalink
Apply to term repository too
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Dec 4, 2023
1 parent 4299a21 commit 449595c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stache/Repositories/TermRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function findByUri(string $uri, string $site = null): ?Term
return true;
}

return Str::startsWith($uri, '/'.$collection->handle());
return Str::startsWith($uri.'/', '/'.$collection->handle().'/');
});

if ($collection) {
Expand Down

0 comments on commit 449595c

Please sign in to comment.