Skip to content

Commit a20f83d

Browse files
dev
1 parent bfd15fa commit a20f83d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vendor/CanUrl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use yii\base\InvalidParamException;
1717
use yii\base\UserException;
1818
use yii\helpers\ArrayHelper;
19+
use yii\helpers\Url;
1920
use yii\web\Application;
2021
use yii\web\View;
2122

@@ -230,6 +231,7 @@ public function is_need_redirect($is_final, $current_url = null)
230231
}
231232
if (!isset($current_url)) {
232233
$current_url = \Yii::$app->getRequest()->getAbsoluteUrl();
234+
$current_url = Url::current([], true);
233235
}
234236
if (!is_string($current_url)) {
235237
throw new InvalidParamException('(!is_string($current_url))');

0 commit comments

Comments
 (0)