Skip to content

Commit f489051

Browse files
committed
Fix issue with replaceEnd
1 parent 4441a62 commit f489051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/Redirects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +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, '/'),
37+
'fullWithoutTrailingSlash' => Str::replaceEnd('/', '', $uri),
3838
'path' => $requestUri,
3939
'pathNoQuery' => Str::beforeLast($requestUri, '?'),
4040
];

0 commit comments

Comments
 (0)