Skip to content

Commit

Permalink
Adjust path entry find
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcusackie authored Sep 3, 2022
1 parent 1e37450 commit a88d08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function registerViewComposers()
// Remove multisite url prefixes if necessary (we can't find entries by uri when they are prefixed)
foreach(\Statamic\Facades\Site::all() as $site) {

if(strlen($site->url) > 1 && str_starts_with($site->url, '/') && str_starts_with($path, $site->url)) {
if(strlen($site->url) > 1 && str_starts_with($path, $site->url)) {
$path = substr($path, strlen($sitePrefix));
}

Expand Down

0 comments on commit a88d08b

Please sign in to comment.