Skip to content

Commit c0d8853

Browse files
authored
Scrollspy is not working with TheAgencyTheme (#12758)
1 parent 728ddb2 commit c0d8853

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
{% assign link = Model.ContentItem.Content.LinkMenuItemPart %}
2-
<a class="nav-link" href="{{ link.Url | href }}">{{ Model.ContentItem.DisplayText }}</a>
2+
<a class="nav-link" href="{{ link.Url | href }}"
3+
{% if link.Url contains "#" %}
4+
data-bs-target="{{ link.Url | split: '/' | last }}"
5+
{% endif %}>
6+
{{ Model.ContentItem.DisplayText }}</a>

0 commit comments

Comments
 (0)