kickthemooon
3 years ago

Only /dashboard route redirects to /dashboard/

Posted 3 years ago by kickthemooon

So I have a route:

    Route::get('dashboard', 'Dashboard\[email protected]');

And when I try to open this route a trailing slash is added and I am being redirected to a 404 error. this: /dashboard becomes this /dashboard/

And the strangest thing is that is happening with ONLY the dashboard route, All other routes are working just fine.

    Route::get('dashboard/users', 'Dashboard\[email protected]');
    Route::get('dashboard/users/create', 'Dashboard\[email protected]');
    Route::post('dashboard/users/create', 'Dashboard\[email protected]');
    Route::get('dashboard/users/edit/{id}', 'Dashboard\[email protected]');
    Route::post('dashboard/users/edit/{id}', 'Dashboard\[email protected]');
    Route::get('dashboard/users/delete/{id}', 'Dashboard\[email protected]');

all these and all other routes work fine

did anybody have a similar issue? any suggestion is welcome

Please sign in or create an account to participate in this conversation.