diff --git a/notebook/templates/terminal.html b/notebook/templates/terminal.html
index 234d6e939..9c398f348 100644
--- a/notebook/templates/terminal.html
+++ b/notebook/templates/terminal.html
@@ -7,6 +7,7 @@
{% block params %}
data-base-url="{{base_url | urlencode}}"
+data-ws-url="{{ws_url | urlencode}}"
data-ws-path="{{ws_path}}"
{% endblock %}