diff --git a/app/assets/javascripts/editor/execution.js.erb b/app/assets/javascripts/editor/execution.js.erb index 668ca81a..8d2c744e 100644 --- a/app/assets/javascripts/editor/execution.js.erb +++ b/app/assets/javascripts/editor/execution.js.erb @@ -6,7 +6,8 @@ CodeOceanEditorWebsocket = { sockURL.pathname = url; sockURL.protocol = '<%= DockerClient.config['ws_client_protocol'] %>'; - return sockURL.toString(); + //return the URL, but strip last # if there is one... + return sockURL.toString().replace(/#$/,''); }, initializeSocket: function(url) {