web/views/navigation.py
changeset 5910 432c657ebfec
parent 5895 6a3f776292a5
child 5944 b962dff47c36
--- a/web/views/navigation.py	Tue Jul 06 17:15:25 2010 +0200
+++ b/web/views/navigation.py	Tue Jul 06 17:19:30 2010 +0200
@@ -268,9 +268,11 @@
         nav.clean_params(params)
         # make a link to see them all
         if show_all_option:
-            url = xml_escape(req.build_url(__force_display=1, **params))
+            basepath = req.relative_path(includeparams=False)
+            params['__force_display'] = 1
+            url = nav.page_url(basepath, params)
             w(u'<div><a href="%s">%s</a></div>\n'
-              % (url, req._('show %s results') % len(rset)))
+              % (xml_escape(url), req._('show %s results') % len(rset)))
         rset.limit(offset=start, limit=stop-start, inplace=True)