diff --git a/close.html b/close.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/conference.js b/conference.js
index 07a218785..7671fdc9c 100644
--- a/conference.js
+++ b/conference.js
@@ -203,10 +203,18 @@ function muteLocalVideo (muted) {
/**
* Check if the welcome page is enabled and redirects to it.
* If requested show a thank you dialog before that.
+ * If we have a close page enabled, redirect to it without
+ * showing any other dialog.
* @param {boolean} showThankYou whether we should show a thank you dialog
*/
function maybeRedirectToWelcomePage(showThankYou) {
+ // if close page is enabled redirect to it, without further action
+ if (config.enableClosePage) {
+ window.location.pathname = "close.html";
+ return;
+ }
+
if (showThankYou) {
APP.UI.messageHandler.openMessageDialog(
null, null, null,
diff --git a/config.js b/config.js
index 18f6b3069..912b90f23 100644
--- a/config.js
+++ b/config.js
@@ -56,6 +56,8 @@ var config = {
//disableAdaptiveSimulcast: false,
enableRecording: false,
enableWelcomePage: true,
+ //enableClosePage: false, // enabling the close page will ignore the welcome
+ // page redirection when call is hangup
disableSimulcast: false,
logStats: false, // Enable logging of PeerConnection stats via the focus
// requireDisplayName: true, // Forces the participants that doesn't have display name to enter it when they enter the room.