Fixed: Match setting path when URL contains query string

This commit is contained in:
philipp lang 2023-06-08 00:22:34 +02:00 committed by Philipp Lang
parent 20973b3664
commit da3197395f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class SettingFactory
{
return collect($this->settings)->map(fn ($setting) => [
'url' => $setting::url(),
'is_active' => request()->fullUrlIs(url($setting::url())),
'is_active' => '/'.request()->path() === $setting::url(),
'title' => $setting::title(),
])
->toArray();