]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Empty currentTag should be null 3294/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 28 Jul 2017 06:07:09 +0000 (08:07 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 28 Jul 2017 06:07:11 +0000 (08:07 +0200)
And when a parameter is null, it won't appear in the url like `?tag=`.

src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 6424df8d3ba710f064bb94f00612f0fc6ae36c94..12cead487af8f21aeff0e071abcff87a67942fec 100644 (file)
@@ -86,7 +86,7 @@
 
     <!-- Export -->
     <aside id="download-form">
-    {% set currentTag = '' %}
+    {% set currentTag = null %}
     {% if tag is defined %}
         {% set currentTag = tag %}
     {% endif %}
index 0c4dc80b6333491cc6b79adf75120a9b28e49b49..9d6fb3f56b77390418d3b289eb799404782c811b 100644 (file)
@@ -57,7 +57,7 @@
 
     <!-- Export -->
     <div id="export" class="side-nav right-aligned">
-    {% set currentTag = '' %}
+    {% set currentTag = null %}
     {% if tag is defined %}
         {% set currentTag = tag.slug %}
     {% endif %}