Fixed: Match setting path when URL contains query string
This commit is contained in:
parent
20973b3664
commit
da3197395f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue