diff --git a/trunk/research/api-server/static-dir/index.html b/trunk/research/api-server/static-dir/index.html index 5611d5fbe..6c8f0f0e9 100755 --- a/trunk/research/api-server/static-dir/index.html +++ b/trunk/research/api-server/static-dir/index.html @@ -61,9 +61,9 @@ // The player url. if (true) { - const prefix = 'players/'; + const prefix = `players/?schema=${window.location.protocol.replace(':', '')}`; // If not 8080, user should proxy to the default port. - const query = parseInt(window.location.port) === 8080 ? '' : `?port=${window.location.port}`; + const query = parseInt(window.location.port) === 8080 ? '' : `&port=${window.location.port}`; document.getElementById("enPlayer").setAttribute('href', `${prefix}${query}`); document.getElementById("cnPlayer").setAttribute('href', `${prefix}${query}`); }