Skip to content

Commit

Permalink
Use getCanonicalUrl to get the correct URL based on type [PUB-233]
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Aug 26, 2024
1 parent 3c66956 commit 3ffaccd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
@else
<span class="m-link-list__item o-accordion__panel-content">
<a class="m-link-list__trigger f-secondary {{ $isActive ? 'active' : '' }}" href="{{ $href }}"{!! (isset($item->gtmAttributes)) ? ' '.$item->gtmAttributes.'' : '' !!}>
<a class="m-link-list__trigger f-secondary {{ $isActive ? 'active' : '' }}" href="{{ $item->present()->getCanonicalUrl }}"{!! (isset($item->gtmAttributes)) ? ' '.$item->gtmAttributes.'' : '' !!}>
<span class="m-link-list__label">{!! $item->title !!}</span>
</a>
</span>
Expand Down

0 comments on commit 3ffaccd

Please sign in to comment.