title: Play Framework: Redirect to controller method with arguments
body: <p>I am building a web application with PLAY framework 2.2.1 and am trying to display all available http get query parameters for the requested site in the address bar, even the ones that are not set in the request. In cases where
  not all http get parameters are set, I want to add the unset parameters with the default values and make a redirect.</p>
  
  <p>I have a site that can be requested with GET:</p>
  
  <pre><code>GET /test controllers.Application.test(q:String, w:String ?= null, f:String ?= null, o:String ?= null)
  </code></pre>
  
  <p>Here is the method that I'd like to have in <code>controllers.Application</code>:</p>
  
  <pre><code>public static Result test(String q, String w, String f, String o){
  
      ...
  
      // In case not all parameters where set
      if (reload == 1){
              return redirect(controllers.Application.test(qDefault, wDefault, fDefault, oDefault));
      }
      else {
          ok(...);
      }
  }
  </code></pre>
  
  <p>The problem is that redirect() takes a String and not a Result object.</p>
  
  <p>My first solution is to write</p>
  
  <pre><code>return controllers.Application.test(qDefault, wDefault, fDefault, oDefault);
  </code></pre>
  
  <p>But unfortunately the adress bar does not update.</p>
  
  <p>My second solution is to build the string manually:</p>
  
  <pre><code>return redirect("/test?q=" + query + "&amp;f=" + f + "&amp;w=" + w + "&amp;o=" + showOptions);
  </code></pre>
  
  <p>This works fine, but is there no other way more elegant way to do this?</p>