Skip to content

Commit

Permalink
fix: url in breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Sep 3, 2024
1 parent b7da43f commit 5ef0e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piggy/templates/partials/parts/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
{% for p in request.path.strip("/").split("/") if p %}
{# If the path is the assignment prefix, we want to show the assignment name #}
{% if p == ASSIGNMENT_URL_PREFIX %}
{% set url = request.base_url.split(p)[0] + ASSIGNMENT_URL_PREFIX %}
{% set url = "/" + request.base_url.split(p)[0].split(request.host_url)[1] + ASSIGNMENT_URL_PREFIX %}
{% set p = "Oppgaver" %}
{% elif loop.last %}
{% set p = meta.name or meta.title %}
{% else %}
{% set url = request.base_url.split(p)[0] + p %}
{% set url = "/" + request.base_url.split(p)[0].split(request.host_url)[1] + p %}
{% set p = meta.get(get_template_name_from_index(loop.index)).name %}
{% endif %}

Expand Down

0 comments on commit 5ef0e96

Please sign in to comment.