title: How to customize display url after jquery POST?
body: <p>I'm using Freebase Suggest, a JQuery search form:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(function() {
      $("#game-search").suggest({type:'/games/game'}).bind("fb-select", function(e, data) {
      $("#game-id").val(data.id);
      $("#game-name").val(data.name);
      });
    });
  &lt;/script&gt;
  
  &lt;form name="input" action="/game" method="post"&gt;
    &lt;input class="search-box" type="text" id="game-search"/&gt;
    &lt;input type="hidden" name="game_id" id="game-id" /&gt;
    &lt;input type="hidden" name="game_name" id="game-name" /&gt;
    &lt;input class="button" value="Go" type="submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This POST will return a page that displays game data.  But I want the display url to be the permalink to this page. Right now, no matter what game is returned by searching, the url is foo.com/game, but the permalink is foo.com/game/id/mid (id and mid are reference ids).</p>
  
  <p>In my Handler, I return using:</p>
  
  <pre><code>self.response.out.write(template.render(path, 
                                          template_values, 
                                          debug=DEBUG))
  </code></pre>
  
  <p>I suspect there is a way to redirect as well but am not familiar with how.</p>
  
  <p>UDPATE: doesn't seem to be clear what I am trying to ask/do. The POST passes an id via JQuery to the handler.  The path for the POST is /game.  I want the result page to display the URL /game/id/mid, basically I want to construct and display the permalink.  Maybe this is as simple as constructing the Game object in the POST, and then redirecting to a GET (using the permalink URL structure), and then the GET renders the template.  </p>