diff src/server/blog.py @ 855:de17f7313cbe

server (blog): fixed atom feed link
author Goffi <goffi@goffi.org>
date Fri, 22 Jan 2016 20:22:30 +0100
parents 0dfb76b13115
children 2e0e9cf9efb4
line wrap: on
line diff
--- a/src/server/blog.py	Fri Jan 22 20:22:30 2016 +0100
+++ b/src/server/blog.py	Fri Jan 22 20:22:30 2016 +0100
@@ -452,7 +452,9 @@
 
         avatar = os.path.normpath('/{}'.format(getOption('avatar')))
         title = getOption(C.STATIC_BLOG_PARAM_TITLE) or user
-        data = {'base_url': base_url,
+        query_data = urllib.urlencode(getDefaultQueryData(request)).decode('utf-8')
+        data = {'url_base': base_url,
+                'url_query': u'?{}'.format(query_data) if query_data else '' ,
                 'keywords': getOption(C.STATIC_BLOG_PARAM_KEYWORDS),
                 'description': getOption(C.STATIC_BLOG_PARAM_DESCRIPTION),
                 'title': title,