diff --git a/bukuserver/views.py b/bukuserver/views.py
index 7173929..62bdac9 100644
--- a/bukuserver/views.py
+++ b/bukuserver/views.py
@@ -353,9 +353,13 @@ class TagModelView(BaseModelView):
def _name_formatter(self, context, model, name):
data = getattr(model, name)
+ if not data:
+ return Markup('{}'.format(
+ url_for('bookmark.index_view', flt2_tags_number_equal=0),
+ '<EMPTY TAG>'
+ ))
return Markup('{}'.format(
- url_for('bookmark.index_view', flt1_tags_contain=data),
- data if data else '<EMPTY TAG>'
+ url_for('bookmark.index_view', flt1_tags_contain=data), data
))
can_create = False