Commit a7f2d6a475a0b9521cdba014bad40c0298f4298a

Authored by Andrey Karpikov
1 parent 777a6cae

make redirect to language page

... ... @@ -98,6 +98,10 @@ module Kanjai
98 98 I18n.locale = Rails.application.config.i18n.default_locale
99 99 end
100 100
  101 + if domain.page_langs.count > 1 && original_fullpath == '/'
  102 + redirect_to "/#{I18n.locale}" and return
  103 + end
  104 +
101 105
102 106 #@page_data = PageDatum.where(:url => @url).first
103 107 #$current_locale = PageLang.where(default_use: true).first.code
... ...
1 1 module Kanjai
2   - VERSION = "0.0.352"
  2 + VERSION = "0.0.353"
3 3 end
... ...