From 5cb4ca8c6df44236d0265943815056f44fb3efd7 Mon Sep 17 00:00:00 2001 From: yarik Date: Mon, 12 Dec 2016 13:14:02 +0200 Subject: [PATCH] Small fix --- components/LanguageRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/LanguageRequest.php b/components/LanguageRequest.php index 11a3b75..0eda683 100755 --- a/components/LanguageRequest.php +++ b/components/LanguageRequest.php @@ -21,7 +21,7 @@ $language_url = isset( $url_list[ 1 ] ) ? $url_list[ 1 ] : NULL; $is_language = Language::setCurrent($language_url); - if(!$is_language) { + if(!$is_language && !$this->isAjax) { \Yii::$app->response->redirect('/'.Language::getCurrent()->url.$this->url, 302, false); } -- libgit2 0.21.4