Skip to content

Commit

Permalink
Rename RemoveTrailingSlash to RedirectToCanonicalUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jan 19, 2024
1 parent 31dbb9e commit cc9ee00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Kernel extends Foundation\Http\Kernel
Middleware\DefaultBindings::class,
Middleware\FirewallBlacklist::class,
Middleware\SurveilRoutes::class,
Middleware\RemoveTrailingSlash::class,
Middleware\RedirectToCanonicalUrl::class,
],
'api' => [
'throttle:60,1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation;

class RemoveTrailingSlash
class RedirectToCanonicalUrl
{
public function handle(Request $request, callable $next): HttpFoundation\Response
{
Expand Down

0 comments on commit cc9ee00

Please sign in to comment.