react-router redirect query string
<p>I am trying to use react-router 2.X to include a redirect logic.</p>

<pre><code>    &lt;Route path="albums" component={AlbumList}&gt;
      &lt;Redirect from=":albumId" to='/photos/' query= { {'album_id': ':albumId'} } /&gt;
    &lt;/Route&gt;
</code></pre>

<p>it seems like :albumId can be extracted from the url in "from" and "to" properties but not in query, how can I use the value of :albumId in query property. Thanks</p>