summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/url.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyramid/url.py b/pyramid/url.py
index b135c361a..3d95d7cc9 100644
--- a/pyramid/url.py
+++ b/pyramid/url.py
@@ -224,8 +224,6 @@ class URLMethodsMixin(object):
query = kw.pop('_query')
if query:
qs = '?' + urlencode(query, doseq=True)
- elif getattr(self, 'GET', None):
- qs = '?' + urlencode(self.GET, doseq=True)
if '_anchor' in kw:
anchor = kw.pop('_anchor')
@@ -684,6 +682,9 @@ class URLMethodsMixin(object):
if route_name is None:
raise ValueError('Current request matches no route')
+ if '_query' not in kw:
+ kw['_query'] = self.GET
+
newkw = {}
newkw.update(self.matchdict)
newkw.update(kw)