Fixed redirection i18n redirection on preview

This commit is contained in:
Godwin
2016-06-28 22:19:09 -07:00
parent 8120727b31
commit 2b4532c066
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -101,4 +101,5 @@ BikeBike::Application.configure do
I18n.config.language_detection_method = I18n::Config::DETECT_LANGUAGE_FROM_SUBDOMAIN
I18n.config.subdomain_format = 'preview-%'
I18n.config.host_locale_regex = /^preview\-([a-z]{2})\.[^\.]+\..*$/
end