Flask hotfix
parent
a2555c52f8
commit
ef29dc1fb7
|
@ -44,7 +44,7 @@ def redirect_front():
|
||||||
if SUBDOMAIN:
|
if SUBDOMAIN:
|
||||||
sendfile = "/user_builds/{slug}/translations/{language}/{version}/".format(slug=slug, language=language, version=version)
|
sendfile = "/user_builds/{slug}/translations/{language}/{version}/".format(slug=slug, language=language, version=version)
|
||||||
elif CNAME:
|
elif CNAME:
|
||||||
sendfile = "/cnametoproject/{cname}/translations/{language}/{version}/".format(cname=cname, language=language, version=version)
|
sendfile = "/public_cname_project/{cname}/".format(cname=cname, language=language, version=version)
|
||||||
print "Redirecting {host} to {sendfile}".format(host=request.host, sendfile=sendfile)
|
print "Redirecting {host} to {sendfile}".format(host=request.host, sendfile=sendfile)
|
||||||
return make_response('', 303, {'X-Accel-Redirect': sendfile})
|
return make_response('', 303, {'X-Accel-Redirect': sendfile})
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue