diff --git a/.env.template b/.env.template index 4de7bddc..96a30786 100644 --- a/.env.template +++ b/.env.template @@ -62,7 +62,7 @@ SURVEY_URL=https://www.questionpro.com/t/AUs7VZq00L # Upon leaving the room, users who either opt out of providing feedback or if the survey is disabled # will be redirected to a specified URL. If enabled false the default '/newrcall' URL will be used. -REDIRECT_ENABLED=false +REDIRECT_ENABLED=false # true or false REDIRECT_URL='https://p2p.mirotalk.com' # Sentry (optional) diff --git a/app/src/server.js b/app/src/server.js index 799127ff..8e1892b5 100755 --- a/app/src/server.js +++ b/app/src/server.js @@ -773,7 +773,7 @@ io.sockets.on('connect', async (socket) => { redirect: { active: redirectEnabled, url: redirectURL, - } + }, //... }); }); diff --git a/public/js/client.js b/public/js/client.js index b7d007a0..09e2c6db 100644 --- a/public/js/client.js +++ b/public/js/client.js @@ -636,7 +636,7 @@ let surveyURL = 'https://www.questionpro.com/t/AUs7VZq00L'; // Redirect on leave room let redirectActive = false; -let redirectURL = '/newcall' +let redirectURL = '/newcall'; /** * Load all Html elements by Id @@ -1076,8 +1076,7 @@ function handleServerInfo(config) { surveyURL = survey.url; // Get redirect settings from server - redirectActive = redirect.active, - redirectURL = redirect.url + (redirectActive = redirect.active), (redirectURL = redirect.url); // Limit room to n peers if (userLimits.active && peers_count > userLimits.count) {