How to make a redirect and keep the query string?

google-app-engine, python, python-2.7, webapp2, wsgi

Solution

newurl = '/my/new/route?' + urllib.urlencode(self.request.params)
self.redirect(newurl)

Problem

I want to make a redirect and keep what is the query string. Something like `self.redirect` plus the query parameters that was sent. Is that possible?

Original source