Skip to content

Commit b7b42de

Browse files
authored
Merge pull request #484 from perftools/0.21.x-merge-up-into-0.22.x_ZJ6PcG4U
2 parents 8ff8474 + 597eecc commit b7b42de

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Controller/RunController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function compare(Request $request): void
271271
'base_run' => $baseRun,
272272
'head_run' => $headRun,
273273
'candidates' => $candidates,
274-
'url_params' => $request->get(),
274+
'url_params' => $request->getQueryParams(),
275275
'comparison' => $comparison,
276276
'paging' => $paging,
277277
'search' => [

src/RequestProxy.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public function __construct(Request $request)
1717
$this->request = $request;
1818
}
1919

20+
public function getQueryParams()
21+
{
22+
return $this->request->getQueryParams();
23+
}
24+
2025
public function get(string $key, $default = null)
2126
{
2227
return $this->request->getQueryParam($key, $default);

templates/runs/compare.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div class="row-fluid row-spaced">
3737
<h3>Other runs with {{ base_run.meta.simple_url }}</h3>
3838
{% include 'runs/paginated-list.twig' with {runs: candidates.results, show_compare_link: true} %}
39-
{{ helpers.pagination('run.compare', pagination, url_params) }}
39+
{{ helpers.pagination('run.compare', paging, url_params) }}
4040
</div>
4141
{% endif %}
4242

0 commit comments

Comments
 (0)