Skip to content

Commit 02e296e

Browse files
authored
fix: missing "/" at the end of URLs for categories and tags in breadcrumb (#1495)
1 parent 4facf5b commit 02e296e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/topbar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% if forloop.first %}
1818
<span>
1919
<a href="{{ '/' | relative_url }}">
20-
{{ site.data.locales[include.lang].tabs.home | capitalize }}
20+
{{- site.data.locales[include.lang].tabs.home | capitalize -}}
2121
</a>
2222
</span>
2323

@@ -30,8 +30,8 @@
3030

3131
{% elsif page.layout == 'category' or page.layout == 'tag' %}
3232
<span>
33-
<a href="{{ item | relative_url }}">
34-
{{ site.data.locales[include.lang].tabs[item] | default: page.title }}
33+
<a href="{{ item | append: '/' | relative_url }}">
34+
{{- site.data.locales[include.lang].tabs[item] | default: page.title -}}
3535
</a>
3636
</span>
3737
{% endif %}

0 commit comments

Comments
 (0)