Skip to content

Commit 0491cd3

Browse files
authored
Remove site.url from first breadcrumb link (#3051)
* Remove site.url from first breadcrumb link Fixes #3050 * Use relative_rul filter instead of site.baseurl
1 parent 3c075fe commit 0491cd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_includes/breadcrumbs.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
{% for crumb in crumbs offset: 1 %}
2020
{% if forloop.first %}
2121
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
22-
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
22+
<a href="{{ '/' | relative_url }}" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
23+
2324
<meta itemprop="position" content="{{ i }}" />
2425
</li>
2526
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>

0 commit comments

Comments
 (0)