Skip to content

Commit 4441a62

Browse files
committed
Also make sure to redirect root domains without a trailing slash
1 parent 2d879b9 commit 4441a62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Http/Middleware/Redirects.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function handle(Request $request, Closure $next)
3434
'full' => $uri,
3535
'fullNoQuery' => Str::beforeLast($uri, '?'),
3636
'fullWithTrailingSlash' => Str::finish($uri, '/'),
37+
'fullWithoutTrailingSlash' => Str::replaceEnd($uri, '/'),
3738
'path' => $requestUri,
3839
'pathNoQuery' => Str::beforeLast($requestUri, '?'),
3940
];

0 commit comments

Comments
 (0)