title: Slim Framework redirect with params
body: <p>I'm using Slim framework for the first time, and so far everything is spot on. But there is one thing I can't seem to get my head around. After posting a form I would like to redirect back to the same page, but it uses a param in the url and I can't get back to it. This is what I have so far:</p>
  
  <pre><code>$app-&gt;post('/markets-:game', $authenticated(), function($game) use ($app) {
  
      $request = $app-&gt;request();
  
      $id = $request-&gt;post('game3');
  
      $app-&gt;flash('global', 'game added');
      $app-&gt;response-&gt;redirect($app-&gt;urlFor('games.markets', {"game:$id"}));
  
  })-&gt;name('games.markets.post');
  </code></pre>
  
  <p>Any help would be much appreciated. Thanks</p>