Index: modules/web/templates/site.conf.erb |
diff --git a/modules/web/templates/site.conf.erb b/modules/web/templates/site.conf.erb |
index 538ff66bb2d606b55393d2fc92d2f82e158e6959..3e709563295d72e3b8a7df18b8b3e6ff003b4b07 100644 |
--- a/modules/web/templates/site.conf.erb |
+++ b/modules/web/templates/site.conf.erb |
@@ -26,6 +26,12 @@ location / |
set $preferredRegion $1; |
} |
+ if ($arg_fb_locale ~ ^(\w\w)_(\w\w)$) |
+ { |
+ set $preferredLang $1; |
+ set $preferredRegion $2; |
+ } |
+ |
# Redirect canonical URLs to language-specific versions |
if (-e "$document_root/${preferredLang}_$preferredRegion$uri") |