فهرست منبع

handle the trailing slash for subpages

Olivier Massot 4 سال پیش
والد
کامیت
ee262b950a
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      ot_core/Classes/Website/OtWebsiteRepository.php

+ 3 - 0
ot_core/Classes/Website/OtWebsiteRepository.php

@@ -351,6 +351,9 @@ class OtWebsiteRepository
         if ($devMode) {
             $tail = preg_replace("/\/?[\w\-]+\/?(.*)/", "/$1", $tail);
         }
+        if ($tail != "/") {
+            $tail = rtrim($tail, '/');
+        }
 
         $q = $this->connectionPool->getQueryBuilderForTable('pages');
         return $q