title: Flask: How to pass all GET parameters to redirect?
body: <p>I would like to do something like this:</p>
  
  <pre><code>return redirect(app.config['FB_APP_URL'], request.args)
  </code></pre>
  
  <p>But I get an exception:</p>
  
  <pre><code>AttributeError: 'ImmutableMultiDict' object has no attribute 'split'
  </code></pre>
  
  <p>Is there an easier way to achieve this or do I have to loop through request.args ?
  thanks</p>
  
  <p><strong>update:</strong></p>
  
  <p>Going with Paolo 's solution, this is the solution that worked for me.</p>
  
  <pre><code>params = urlparse(request.url).query
          return redirect(app.config['FB_APP_URL']+"?"+params) 
  </code></pre>