From 03cf11f51932ccbb334cca967cb01d851e29017b Mon Sep 17 00:00:00 2001 From: mdadev Date: Sat, 3 Feb 2018 14:18:12 +0300 Subject: [PATCH 1/2] fix default page of complex component --- lib/basisrouter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/basisrouter.php b/lib/basisrouter.php index a3cea27..ea35295 100644 --- a/lib/basisrouter.php +++ b/lib/basisrouter.php @@ -31,12 +31,12 @@ abstract class BasisRouter extends \CBitrixComponent /** * @var string Template page default */ - protected $defaultPage = 'list'; + protected $defaultPage = 'section'; /** * @var string Template page default for SEF mode */ - protected $defaultSefPage = 'list'; + protected $defaultSefPage = 'section'; /** * @var string Value of the parameter `SEF_FOLDER` @@ -55,7 +55,7 @@ abstract class BasisRouter extends \CBitrixComponent protected function setSefDefaultParams() { $this->defaultUrlTemplates404 = [ - 'list' => '', + 'section' => '', 'detail' => '#ELEMENT_ID#/' ]; From d143b7a91c098e04bb2f1da78fc266fd9de40fed Mon Sep 17 00:00:00 2001 From: mdadev Date: Sun, 4 Feb 2018 12:33:07 +0300 Subject: [PATCH 2/2] fix default page of complex component --- lib/basisrouter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/basisrouter.php b/lib/basisrouter.php index ea35295..94190fd 100644 --- a/lib/basisrouter.php +++ b/lib/basisrouter.php @@ -31,12 +31,12 @@ abstract class BasisRouter extends \CBitrixComponent /** * @var string Template page default */ - protected $defaultPage = 'section'; + protected $defaultPage = 'index'; /** * @var string Template page default for SEF mode */ - protected $defaultSefPage = 'section'; + protected $defaultSefPage = 'index'; /** * @var string Value of the parameter `SEF_FOLDER` @@ -55,7 +55,7 @@ abstract class BasisRouter extends \CBitrixComponent protected function setSefDefaultParams() { $this->defaultUrlTemplates404 = [ - 'section' => '', + 'index' => '', 'detail' => '#ELEMENT_ID#/' ];