Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Changed home blog posts pagination route from /page/1 to /p/1 to avoid conflict with page route for pages that have numeric slugs like /page/123

givanzdd27d3f25110
diff --git a/config/routes.php b/config/routes.php
index 405e996..34bc7c7 100755
--- a/config/routes.php
+++ b/config/routes.php
@@ -26,8 +26,9 @@ return [
//homepage
'/' => ['module' => 'index/index'],
- //pagination for blog posts
- '/page/#page#' => ['module' => 'index/index'],
+
+ //pagination for blog posts when home has blog posts
+ '/p/#page#' => ['module' => 'index/index'],
//user
'/user/login' => ['module' => 'user/login/index'],
@@ -150,7 +151,7 @@ return [
//multi language content - language code must be at least 2 characters
'/{language{2,5}}/' => ['module' => 'index/index'],
//pagination for blog posts
- '/{language{2,5}}/page/#page#' => ['module' => 'index/index'],
+ '/{language{2,5}}/p/#page#' => ['module' => 'index/index'],
//content
'/{language{2,5}}/blog' => ['module' => 'content'],
'/{language{2,5}}/cat/{slug}' => ['module' => 'content/category/language'],