Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 713 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 713 Bytes

asgardcms-redirect

Module for AsgardCMS that add the possibility to manage redirect within the app itself.

How to use

You need to add a new middleware on the global group. Open config/asgard/core/core.php and add check-redirect middleware in middleware.frontend group. You should have something like:

'middleware' => [
       'backend' => [
           'auth.admin',
       ],
       'frontend' => [
           'check-redirect',
       ],
       'api' => [
           'api',
       ],
    ],

In this way each request will be checked by the module and it will perform the redirect if needed.

Screenshots

Index Screenshot

Create Screenshot