Skip to content

Commit

Permalink
Merge branch 'master' into doc-ja-2024-01
Browse files Browse the repository at this point in the history
  • Loading branch information
softark authored Jan 3, 2024
2 parents ab2c653 + c7b4b1d commit 8e7ba86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/web/UrlManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public function createUrl($params)
$anchor = isset($params['#']) ? '#' . $params['#'] : '';
unset($params['#'], $params[$this->routeParam]);

$route = trim($params[0], '/');
$route = trim(isset($params[0]) ? $params[0] : '', '/');
unset($params[0]);

$baseUrl = $this->showScriptName || !$this->enablePrettyUrl ? $this->getScriptUrl() : $this->getBaseUrl();
Expand Down

0 comments on commit 8e7ba86

Please sign in to comment.