Skip to content

Commit 383490b

Browse files
Fix relative paths for pagination
Fixes: #228
1 parent e237c57 commit 383490b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

view.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
$lpm1 = $lastpage - 1;
147147
$adjacents = 3;
148148
$pagination = '<div style="width: inherit; word-wrap: break-word;">';
149-
$url = preg_replace('/&page=(\d+)/i', '', $_SERVER['REQUEST_URI']);
149+
$url = preg_replace('/&page=(\d+)/i', '', getRelativePath('view.php'));
150150

151151
if ($page_num_request > 1) $pagination .= "<a href=\"$url&page=$prev\">&#8592;</a>&nbsp;"; else
152152
$pagination .= "&#8592;&nbsp;";
@@ -311,4 +311,3 @@
311311
}
312312

313313
require 'includes/footer.inc.php';
314-

0 commit comments

Comments
 (0)