Skip to content

Commit 2f373d4

Browse files
committed
more www. cleanup.
1 parent 18df7ff commit 2f373d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ide/routes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def idejs_static():
169169
if auth.check_auth_host_for_preview(host_name): # are we running in a preview?
170170
ide_js = ide_js.replace('WEBSERVER_NAME_TEMPLATE',host_name)
171171
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.')
172175
else:
173176
ide_js = ide_js.replace('WEBSERVER_NAME_TEMPLATE',host_name)
174177
ide_js = ide_js.replace('SANDBOX_PREFIX_TEMPLATE','https://sandbox.')

0 commit comments

Comments
 (0)