_includes/page/navbar.html in jekyll-any-theme-0.1.0 vs _includes/page/navbar.html in jekyll-any-theme-0.1.1
- old
+ new
@@ -49,10 +49,10 @@
{{ list_title }}
</a>
<div class="dropdown-menu" aria-labelledby="{{ list_title_slug }}_dropdown">
{% for item in list %}
{%- assign link = site.pages | where:'title', item | default: nil -%}
- <a class="dropdown-item{% if page.url == link[0].url %} active{% endif %}" href="{{ link[0].url }}">{{ item }}{% if page.url == link[0].url %} <span class="sr-only">(current)</span>{% endif %}</a>
+ <a class="dropdown-item{% if page.url == link[0].url %} active{% endif %}" href="{{ link[0].url | absolute_url }}">{{ item }}{% if page.url == link[0].url %} <span class="sr-only">(current)</span>{% endif %}</a>
{% endfor %}
</div>
</li>
{%- endif -%}
{%- endfor -%}