diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-07-28 08:07:09 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-07-28 08:07:11 +0200 |
commit | bde23a44f8585c0c668719d9e34f06e30e5571aa (patch) | |
tree | e2078dc8c1bf239090b5e64da2c02f7934abff85 | |
parent | 233eb91be4bd381ff48de0a15aff94415a3f2797 (diff) | |
download | wallabag-bde23a44f8585c0c668719d9e34f06e30e5571aa.tar.gz wallabag-bde23a44f8585c0c668719d9e34f06e30e5571aa.tar.zst wallabag-bde23a44f8585c0c668719d9e34f06e30e5571aa.zip |
Empty currentTag should be null
And when a parameter is null, it won't appear in the url like `?tag=`.
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 6424df8d..12cead48 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | |||
@@ -86,7 +86,7 @@ | |||
86 | 86 | ||
87 | <!-- Export --> | 87 | <!-- Export --> |
88 | <aside id="download-form"> | 88 | <aside id="download-form"> |
89 | {% set currentTag = '' %} | 89 | {% set currentTag = null %} |
90 | {% if tag is defined %} | 90 | {% if tag is defined %} |
91 | {% set currentTag = tag %} | 91 | {% set currentTag = tag %} |
92 | {% endif %} | 92 | {% endif %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 0c4dc80b..9d6fb3f5 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -57,7 +57,7 @@ | |||
57 | 57 | ||
58 | <!-- Export --> | 58 | <!-- Export --> |
59 | <div id="export" class="side-nav right-aligned"> | 59 | <div id="export" class="side-nav right-aligned"> |
60 | {% set currentTag = '' %} | 60 | {% set currentTag = null %} |
61 | {% if tag is defined %} | 61 | {% if tag is defined %} |
62 | {% set currentTag = tag.slug %} | 62 | {% set currentTag = tag.slug %} |
63 | {% endif %} | 63 | {% endif %} |