Fix crumb paths

This commit is contained in:
Ana Custura 2026-03-06 08:51:31 +00:00
parent e0e63a747f
commit 9601597b5a

View file

@ -1,6 +1,6 @@
<div class="breadcrumbs">
<nav class="breadcrumb" aria-label="breadcrumbs">
{% set ns = namespace(crumb_path=request.url_root[:-1])%}
{% set ns = namespace(crumb_path="")%}
{# We use a namespace since jinja 2 variables cannot persist outside loops
The crumb_path var dynamically constructs urls for each breadcrumb based on request.path (removing the trailing slash),
We need to do this for the file viewer, as it can have many nested directories, but works for all other pages. #}