فهرست منبع

fix the subpages url resolution on dev mode

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

+ 1 - 2
ot_core/Classes/Website/OtWebsiteRepository.php

@@ -349,8 +349,7 @@ class OtWebsiteRepository
 
         $tail = $uri->getPath();
         if ($devMode) {
-            $tail = rtrim($tail, '/') . '/';
-            $tail = preg_replace("/\/?[\w\-]+\/(.*)/", "/$1", $tail);
+            $tail = preg_replace("/\/?[\w\-]+\/?(.*)/", "/$1", $tail);
         }
 
         $q = $this->connectionPool->getQueryBuilderForTable('pages');