Skip to content

Commit

Permalink
Fix default news route if friendly_urls is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Apr 1, 2023
1 parent e9df9f1 commit c396936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/routes.php
Expand Up @@ -10,7 +10,7 @@
defined('MYAAC') or die('Direct access not allowed!');

return [
['GET', '', '__redirect__/news'], // redirect empty URL to news
['GET', '', '__redirect__/' . (config('friendly_urls') ? '' : 'index.php/') . 'news'], // redirect empty URL to news
['GET', 'news/archive/{id:int}[/]', 'news/archive.php'],

// block access to some files
Expand Down

0 comments on commit c396936

Please sign in to comment.