Skip to content

Commit 1d77c5a

Browse files
committed
🐛 fix breadcrumbs in pages with pub_base
1 parent fdfd78f commit 1d77c5a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
</li>
1616
{% endif %}
1717
{% for ance in ancestors %}
18-
<li {% if forloop.last %}class="breadcrumb-item active" aria-current="page"{% else %}class="breadcrumb-item"{% endif %}>
19-
<a href="{{ ance.get_absolute_url }}"
20-
{% if forloop.last %}aria-current="page"{% endif %}>{{ ance.get_menu_title }}</a>
21-
</li>
18+
{% if ance.get_absolute_url != '/' %}
19+
<li {% if forloop.last %}class="breadcrumb-item active" aria-current="page"{% else %}class="breadcrumb-item"{% endif %}>
20+
<a href="{{ ance.get_absolute_url }}"
21+
{% if forloop.last %}aria-current="page"{% endif %}>{{ ance.get_menu_title }}</a>
22+
</li>
23+
{% endif %}
2224
{% endfor %}

fragdenstaat_de/fds_cms/templates/cms/page_breadcrumb.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% endif %}>
1010
<div class="container-md">
1111
<ol class="breadcrumb">
12-
{% show_breadcrumb 1 "cms/breadcrumbs.html" %}
12+
{% show_breadcrumb 0 "cms/breadcrumbs.html" %}
1313
</ol>
1414
</div>
1515
</nav>

0 commit comments

Comments
 (0)