Fix pagination by not repeating page value in URL

Change-Id: I169cf66e66b67e178d168440dc4aae96b02c5e38
diff --git a/t/query.t b/t/query.t
index 9fb1678..3252bac 100644
--- a/t/query.t
+++ b/t/query.t
@@ -161,6 +161,12 @@
   ->content_unlike(qr!\"cutOff":true!)
   ;
 
+# Check pagination repetion of page
+my $next_href = $t->get_ok('/?q=der&p=1&count=2')
+  ->tx->res->dom->at('#pagination a[rel=next]')->attr('href');
+like($next_href, qr/p=2/);
+unlike($next_href, qr/p=1/);
+
 # Query with page information - next page
 $t->get_ok('/?q=der&p=2&count=2')
   ->status_is(200)
@@ -243,5 +249,6 @@
   ->text_is('#error','')
   ;
 
+
 done_testing;
 __END__