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?
newurl = '/my/new/route?' + urllib.urlencode(self.request.params)
self.redirect(newurl)
You can fetch the query string to the current request with self.request.query_string
; thus you can redirect to a new URL with self.redirect('/new/url?' + self.request.query_string)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With