Use collection.url_for_self more; Add missing /a.
Using collection.url_for_self(request.urlgen) instead of request.urlgen(lengthy) is so much nicer, so using it around the place. Also added a few missing </a> in one template.
This commit is contained in:
@@ -522,9 +522,7 @@ def collection_atom_feed(request):
|
||||
ATOM feed id is a tag URI (see http://en.wikipedia.org/wiki/Tag_URI)
|
||||
"""
|
||||
atomlinks = [{
|
||||
'href': request.urlgen(
|
||||
'mediagoblin.user_pages.user_collection',
|
||||
qualified=True, user=request.matchdict['user'], collection=collection.slug),
|
||||
'href': collection.url_for_self(request.urlgen, qualified=True),
|
||||
'rel': 'alternate',
|
||||
'type': 'text/html'
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user