Commit de8adda5 by Alexander Makarov

Fixes #5748: Smarty `{path` was generating absolute URLs instead of relative ones

parent 6c1bad64
......@@ -4,7 +4,7 @@ Yii Framework 2 smarty extension Change Log
2.0.1 under development
-----------------------
- no changes in this release.
- Bug #5748: `{path` was generating absolute URLs instead of relative ones (samdark, motzel)
2.0.0 October 12, 2014
......
......@@ -77,7 +77,7 @@ class Extension
array_unshift($params, $params['route']) ;
unset($params['route']);
return Url::to($params, true);
return Url::to($params);
}
/**
......@@ -85,7 +85,7 @@ class Extension
*
* Usage is the following:
*
* {path route='blog/view' alias=$post.alias user=$user.id}
* {url route='blog/view' alias=$post.alias user=$user.id}
*
* where route is Yii route and the rest of parameters are passed as is.
*
......
......@@ -20,6 +20,7 @@ Yii Framework 2 Change Log
- Bug #5682: The `asset` command would incorrectly combine CSS files when `UrlManager::linkAssets` is true (dmvslv)
- Bug #5702: Parenthesis should be automatically added to `Validator::whenClient` to avoid js error (mdmunir, qiangxue)
- Bug #5745: Gii and debug modules may cause 404 exception when the route contains dashes (qiangxue)
- Bug #5748: Smarty `{path` was generating absolute URLs instead of relative ones (samdark, motzel)
- Bug #5768: When setting `data-confirm` attribute to a submit button, clicking on the button would not trigger form submission (qiangxue)
- Bug #5780: `QueryBuilder::batchInsert()` may cause "undefined index" error (qiangxue)
- Bug #5833: The `message` command fails with a FK constraint error when trying to update messages (qiangxue)
......
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