diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html
index d805e5f..413e77d 100644
--- a/ircradio/templates/index.html
+++ b/ircradio/templates/index.html
@@ -88,7 +88,7 @@
var sel_radio_cards = {};
var url_icecast = '{{ settings.icecast2_hostname }}';
var url_album_art = '/assets/art/';
- var ws_url = '{{ url_for('ws', _external=True) }}';
+ var ws_url = '{{ settings.ws_url }}';
var icon_play = `