Skip to content

Commit

Permalink
Revert link active matching
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Aug 13, 2024
1 parent 303a2c7 commit 512d83f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Support/Html/Mixins/LinkElementMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ public function link(): mixed
/** @var A $this */
$href = route($route, ...$parameters);

$name = str($route)->before('.')->value();

return $this
->attribute('wire:navigate')
->href($href)
->class([
'link',
'link-active' => request()->routeIs($name, "{$name}.*") || request()->fullUrlIs($href),
'link-active' => request()->routeIs($route, "{$route}.*") || request()->fullUrlIs($href),
]);
};
}
Expand Down

0 comments on commit 512d83f

Please sign in to comment.