forked from I2P_Developers/i2p.www
Remove lang flag from spec URLs
This commit is contained in:
@@ -179,9 +179,12 @@ def pull_lang(endpoint, values):
|
|||||||
def set_lang(endpoint, values):
|
def set_lang(endpoint, values):
|
||||||
if not values:
|
if not values:
|
||||||
return
|
return
|
||||||
if endpoint == 'static':
|
if endpoint == 'static' or \
|
||||||
|
endpoint.startswith('spec_'):
|
||||||
# Static urls shouldn't have a lang flag
|
# Static urls shouldn't have a lang flag
|
||||||
# (causes complete reload on lang change)
|
# (causes complete reload on lang change)
|
||||||
|
# Spec urls shouldn't have a lang flag
|
||||||
|
# (adds a spurious ?lang=xx to the url)
|
||||||
return
|
return
|
||||||
if 'lang' in values:
|
if 'lang' in values:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user