From b4a74f895efdcc949731abf70c44580461c5c864 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Mon, 18 Apr 2011 11:34:06 +0200
Subject: [PATCH] proper links for next/previous buttons

---
 templates/part.pagenavi.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/part.pagenavi.php b/templates/part.pagenavi.php
index 1bb99b6173b..d48d0cada32 100644
--- a/templates/part.pagenavi.php
+++ b/templates/part.pagenavi.php
@@ -3,7 +3,7 @@
 		<tr>
 			<td width="1">
 				<?php if($_['page']>0):?>
-					<span class="pagerbutton1"><a href="<?php echo $_['page']-1;?>">prev</a>&nbsp;&nbsp;</span>
+					<span class="pagerbutton1"><a href="<?php echo $_['url'].($_['page']-1);?>">prev</a>&nbsp;&nbsp;</span>
 				<?php endif; ?>
 			</td>
 			<td>
@@ -23,7 +23,7 @@
 			</td>
 			<td width="1">
 				<?php if(($_['page']+1)<$_['pagecount']):?>
-					<span class="pagerbutton2"><a href="<?php echo $_['page']+1;?>">next</a></span>
+					<span class="pagerbutton2"><a href="<?php echo $_['url'].($_['page']+1);?>">next</a></span>
 				<?php endif; ?>
 			</td>
 		</tr>
-- 
GitLab