Fix paging for matches

The Javascript for paging between matches was throwing away all other
URL parameters. This makes sure they are retained.