We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dffb4c7 commit c7b4b1dCopy full SHA for c7b4b1d
framework/web/UrlManager.php
@@ -413,7 +413,7 @@ public function createUrl($params)
413
$anchor = isset($params['#']) ? '#' . $params['#'] : '';
414
unset($params['#'], $params[$this->routeParam]);
415
416
- $route = trim($params[0], '/');
+ $route = trim(isset($params[0]) ? $params[0] : '', '/');
417
unset($params[0]);
418
419
$baseUrl = $this->showScriptName || !$this->enablePrettyUrl ? $this->getScriptUrl() : $this->getBaseUrl();
0 commit comments