Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed pagination wrong url for first page

givanzde1206ff2436
diff --git a/app/template/pagination.tpl b/app/template/pagination.tpl
index 57ebd73..d9a3b71 100644
--- a/app/template/pagination.tpl
+++ b/app/template/pagination.tpl
@@ -71,6 +71,7 @@ if (!function_exists('pageUrl')) {
if ($page > 1) {
return htmlspecialchars(Vvveb\url($url, ['page' => $page] + $parameters)) . $query_string;
} else {
+ unset($parameters['page']);
return htmlspecialchars(Vvveb\url($url, $parameters)) . $query_string;
}
}