Commits

Ashutosh Singla committed 500d5d4

Proper linking withing namespaces in tags view. Also fixed similar view.

Comments (0)

Files changed (2)

MoinMoin/apps/frontend/views.py

     return render_template('sitemap.html',
                            item_name=item_name,  # XXX no item
                            sitemap=sitemap,
+                           fqname=fq_name,
     )
 
 
             rev = item[CURRENT]
         except (AccessDenied, KeyError):
             return []
-        itemlinks = split_fqname_set(rev.meta.get(ITEMLINKS, []))
+        itemlinks = set(split_fqname_list(rev.meta.get(ITEMLINKS, [])))
         return [child for child in itemlinks if self.is_ok(child)]
 
     def is_ok(self, child):

MoinMoin/templates/global_tags.html

 {% if tags %}
 <ul class="moin-tags">
     {% for cls, tag in tags %}
-    <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag) }}">{{ tag }}</a></li>
+    <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
     {% endfor %}
 </ul>
 {% endif %}