How to redirect on another page and pass parameter in url from table ? I've created in tornato template something like this
<table data-role="table" id="my-table" data-mode="reflow">
    <thead>
        <tr>
            <th>Username</th>
            <th>Nation</th>
            <th>Rank</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        {% for result  in players %}
        <tr>
            <td>{{result['username']}}</td>
            <td>{{result['nation']}}</td>
            <td>{{result['rank']}}</td>
            <td><input type="button" name="theButton" value="Detail"
                       ></td>
        </tr>
    </tbody>
    {% end %}
</table>  
and I would like when I press detail to be redirect on /player_detail?username=username
and show all detail about that player.
I tried with href="javascript:window.location.replace('./player_info');" inside input tag but don't know how to put result['username'] in.
 How to do this ?
 
     
     
     
     
     
    