We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18df7ff commit 2f373d4Copy full SHA for 2f373d4
ide/routes.py
@@ -169,6 +169,9 @@ def idejs_static():
169
if auth.check_auth_host_for_preview(host_name): # are we running in a preview?
170
ide_js = ide_js.replace('WEBSERVER_NAME_TEMPLATE',host_name)
171
ide_js = ide_js.replace('SANDBOX_PREFIX_TEMPLATE','https://') # no sandbox
172
+ elif host_name.startswith('www.'):
173
+ ide_js = ide_js.replace('WEBSERVER_NAME_TEMPLATE',host_name[4:])
174
+ ide_js = ide_js.replace('SANDBOX_PREFIX_TEMPLATE','https://sandbox.')
175
else:
176
177
ide_js = ide_js.replace('SANDBOX_PREFIX_TEMPLATE','https://sandbox.')
0 commit comments