Skip to content

Commit

Permalink
🐛 fix breadcrumbs in pages with pub_base
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Feb 23, 2024
1 parent fdfd78f commit 1d77c5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions fragdenstaat_de/fds_cms/templates/cms/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
</li>
{% endif %}
{% for ance in ancestors %}
<li {% if forloop.last %}class="breadcrumb-item active" aria-current="page"{% else %}class="breadcrumb-item"{% endif %}>
<a href="{{ ance.get_absolute_url }}"
{% if forloop.last %}aria-current="page"{% endif %}>{{ ance.get_menu_title }}</a>
</li>
{% if ance.get_absolute_url != '/' %}
<li {% if forloop.last %}class="breadcrumb-item active" aria-current="page"{% else %}class="breadcrumb-item"{% endif %}>
<a href="{{ ance.get_absolute_url }}"
{% if forloop.last %}aria-current="page"{% endif %}>{{ ance.get_menu_title }}</a>
</li>
{% endif %}
{% endfor %}
2 changes: 1 addition & 1 deletion fragdenstaat_de/fds_cms/templates/cms/page_breadcrumb.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endif %}>
<div class="container-md">
<ol class="breadcrumb">
{% show_breadcrumb 1 "cms/breadcrumbs.html" %}
{% show_breadcrumb 0 "cms/breadcrumbs.html" %}
</ol>
</div>
</nav>
Expand Down

0 comments on commit 1d77c5a

Please sign in to comment.