From 8900ddefc19674e0b41188d32a18f589634514af Mon Sep 17 00:00:00 2001
From: Johannes Kreiner <johannes@sgalinski.de>
Date: Wed, 25 May 2022 16:13:11 +0200
Subject: [PATCH] [TASK] Limit max pages to 1000 to enable pagination URLs
 without cHash param

---
 Configuration/Routes/config.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Configuration/Routes/config.yaml b/Configuration/Routes/config.yaml
index 63f43e4..05af95b 100644
--- a/Configuration/Routes/config.yaml
+++ b/Configuration/Routes/config.yaml
@@ -3,7 +3,13 @@ routeEnhancers:
     type: Plugin
     namespace: tx_sgnews_pagebrowser
     routePath: '/{localizedSegment}/{currentPage}'
+    defaults:
+      currentPage: '0'
     aspects:
+      currentPage:
+        type: StaticRangeMapper
+        start: '1'
+        end: '1000'
       localizedSegment:
         type: LocaleModifier
         default: page
-- 
GitLab