diff --git a/CHANGELOG b/CHANGELOG index 80857228cd3..f0d2a9bdfa6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ UNRELEASED CHANGES: * Docker image: reduce size of image * Docker image: create storage subdirectory in case they not exist * Docker image: use rewrite rules in .htaccess from public directory instead of apache conf file +* Remove trailing slash from routes RELEASED VERSIONS: diff --git a/routes/web.php b/routes/web.php index fc7d40c503c..da7b3371979 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,7 +29,7 @@ Route::middleware(['auth', '2fa'])->group(function () { Route::group(['as' => 'dashboard'], function () { - Route::get('/dashboard/', 'DashboardController@index')->name('.index'); + Route::get('/dashboard', 'DashboardController@index')->name('.index'); Route::get('/dashboard/calls', 'DashboardController@calls'); Route::get('/dashboard/notes', 'DashboardController@notes'); Route::post('/dashboard/setTab', 'DashboardController@setTab'); @@ -37,10 +37,10 @@ Route::post('/validate2fa', 'DashboardController@index'); Route::group(['as' => 'people'], function () { - Route::get('/people/', 'ContactsController@index')->name('.index'); + Route::get('/people', 'ContactsController@index')->name('.index'); Route::get('/people/add', 'ContactsController@create')->name('.create'); Route::get('/people/notfound', 'ContactsController@missing')->name('.missing'); - Route::post('/people/', 'ContactsController@store')->name('.store'); + Route::post('/people', 'ContactsController@store')->name('.store'); // Dashboard Route::get('/people/{contact}', 'ContactsController@show')->name('.show');