Skip to content

Commit

Permalink
Fix URL double slash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 1, 2024
1 parent 8642826 commit efd8418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/UrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ private static function _createUrl(
}

if ($showScriptName) {
$baseUrl = rtrim($baseUrl, '/') . '/' . ($request->getIsConsoleRequest() ? 'index.php' : $request->getScriptUrl());
$baseUrl = rtrim($baseUrl, '/') . ($request->getIsConsoleRequest() ? '/index.php' : $request->getScriptUrl());
}

if ($scheme === null && !static::isAbsoluteUrl($baseUrl)) {
Expand Down

0 comments on commit efd8418

Please sign in to comment.