From cf67e8359845f52e6bb9df542057503ad9d6dcb9 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Sun, 19 Jan 2020 23:23:27 +0800 Subject: [PATCH] Make slug route param optional for CMS module. This allows the home page to load. --- modules/cms/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms/routes.php b/modules/cms/routes.php index 76f35c4b3..1aaf5ec5d 100644 --- a/modules/cms/routes.php +++ b/modules/cms/routes.php @@ -22,7 +22,7 @@ App::before(function ($request) { * The CMS module intercepts all URLs that were not * handled by the back-end modules. */ - Route::any('{slug}', 'Cms\Classes\CmsController@run')->where('slug', '(.*)?')->middleware('web'); + Route::any('{slug?}', 'Cms\Classes\CmsController@run')->where('slug', '(.*)?')->middleware('web'); /** * @event cms.route