Skip to content

Commit

Permalink
#372 - Setup config for url router
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Jun 17, 2020
1 parent 4ecb898 commit 50a41c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/site/components/com_pages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
5 changes: 4 additions & 1 deletion code/site/components/com_pages/resources/config/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];

0 comments on commit 50a41c6

Please sign in to comment.