From 50a41c6835eb8083495e880cdf0564d617e7ed31 Mon Sep 17 00:00:00 2001 From: Johan Janssens Date: Wed, 17 Jun 2020 02:27:30 +0200 Subject: [PATCH] #372 - Setup config for url router --- code/site/components/com_pages/config.php | 1 + code/site/components/com_pages/resources/config/site.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/site/components/com_pages/config.php b/code/site/components/com_pages/config.php index 75fe5e5b4..9ef78cdc8 100644 --- a/code/site/components/com_pages/config.php +++ b/code/site/components/com_pages/config.php @@ -53,6 +53,7 @@ protected function _initialize(KObjectConfig $config) 'collections' => array(), 'redirects' => array(), + 'rewrites' => array(), 'page' => array(), 'sites' => array('[*]' => JPATH_ROOT.'/joomlatools-pages'), 'headers' => array(), diff --git a/code/site/components/com_pages/resources/config/site.php b/code/site/components/com_pages/resources/config/site.php index 35117ef72..f4a09306a 100644 --- a/code/site/components/com_pages/resources/config/site.php +++ b/code/site/components/com_pages/resources/config/site.php @@ -50,7 +50,10 @@ ], 'com://site/pages.model.cache' => [ 'cache_path' => $config['http_cache_path'], - ] + ], + 'com://site/pages.dispatcher.router.url' => [ + 'routes' => $config['rewrites'], + ], ], 'extensions' => $config['extensions'] ?? array(), ]; \ No newline at end of file