Fix crumb paths
This commit is contained in:
parent
e0e63a747f
commit
9601597b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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. #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue