Add devsite-compatible lang ids to whitelist and add a redirect for the old uppercase ids.
Change-Id: I1fada8710a43a9ac8d3d2d12a53023e78d686513
This commit is contained in:
@@ -110,7 +110,7 @@ class MemcachedZipHandler(webapp.RequestHandler):
|
|||||||
REDIRECT_TYPE_TEMP = 'temporary' # Redirect 'type'string indicate a 302
|
REDIRECT_TYPE_TEMP = 'temporary' # Redirect 'type'string indicate a 302
|
||||||
# Redirect should be served
|
# Redirect should be served
|
||||||
intlString = 'intl/'
|
intlString = 'intl/'
|
||||||
validLangs = ['en', 'de', 'es', 'fr','it','ja','ko','ru','zh-CN','zh-TW']
|
validLangs = ['en', 'de', 'es', 'fr','it','ja','ko','ru','zh-CN','zh-cn','zh-TW','zh-tw']
|
||||||
|
|
||||||
def TrueGet(self, reqUri):
|
def TrueGet(self, reqUri):
|
||||||
"""The top-level entry point to serving requests.
|
"""The top-level entry point to serving requests.
|
||||||
|
|||||||
@@ -543,9 +543,13 @@ redirects:
|
|||||||
type: permanent
|
type: permanent
|
||||||
comment: Redirect to new location
|
comment: Redirect to new location
|
||||||
|
|
||||||
|
- src: /intl/zh-CN/...
|
||||||
|
dst: /intl/zh-cn/...
|
||||||
|
type: permanent
|
||||||
|
|
||||||
|
- src: /intl/zh-TW/...
|
||||||
|
dst: /intl/zh-tw/...
|
||||||
|
type: permanent
|
||||||
|
|
||||||
# -------------------- EASTER EGG REDIRECTS ----------------------
|
# -------------------- EASTER EGG REDIRECTS ----------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user