From 7360a891263bd15817e27f5f47ac9d584957c8db Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sun, 1 Mar 2020 20:25:51 +0100
Subject: [PATCH] Fix check if site is active

---
 templates/base.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index 0f1d702..ae9ffcb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -61,7 +61,7 @@
                     {% for title,url in MENUITEMS %}
                         {% if url is string %}
                             {% if title != 'Search' %}
-                                <li {% if output_file == link %}class="active"{% endif %}>
+                                <li {% if output_file == url %}class="active"{% endif %}>
                                     <a href="{{ genurl( url ) }}" {{ newtab(url) }}>{{ title }}</a>
                                 </li>
                             {% endif %}
@@ -69,7 +69,7 @@
                         {% elif url is iterable %}
                             <li class="btn-group
                                 {%- for title,item_url in url -%}
-                                    {%- if item_url == link -%}
+                                    {%- if item_url == output_file -%}
                                         {{- ' active' -}}
                                     {%- endif -%}
                                 {%- endfor -%}
@@ -79,7 +79,7 @@
                                 </a>
                                 <ul class="dropdown-menu" role="menu">
                                 {% for title,item_url in url %}
-                                    <li {% if item_url == link %}class="active"{% endif %}>
+                                    <li {% if item_url == output_url %}class="active"{% endif %}>
                                         <a href="{{ genurl( item_url ) }}" {{ newtab(item_url) }}>{{ title }}</a>
                                     </li>
                                 {% endfor %}
-- 
GitLab