Commit 5cb4ca8c6df44236d0265943815056f44fb3efd7

Authored by Yarik
1 parent 077e5883

Small fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
components/LanguageRequest.php
... ... @@ -21,7 +21,7 @@
21 21  
22 22 $language_url = isset( $url_list[ 1 ] ) ? $url_list[ 1 ] : NULL;
23 23 $is_language = Language::setCurrent($language_url);
24   - if(!$is_language) {
  24 + if(!$is_language && !$this->isAjax) {
25 25 \Yii::$app->response->redirect('/'.Language::getCurrent()->url.$this->url, 302, false);
26 26 }
27 27  
... ...