Commit 94fb8672 by Carsten Brandt

fixed url helper to not prepend to relative URLs

parent a9e37b90
......@@ -193,7 +193,7 @@ class BaseUrl
if ($url === '') {
$url = Yii::$app->getRequest()->getUrl();
} elseif ($url[0] !== '/' && $url[0] !== '#' && strpos($url, '://') === false) {
} elseif ($url[0] !== '/' && $url[0] !== '#' && strpos($url, '://') === false && strncmp($url, './', 2) !== 0) {
$url = Yii::$app->getRequest()->getBaseUrl() . '/' . $url;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment