From 15742463d0e3aac8510b40f8be93c1b4d1f0b629 Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Tue, 30 Jun 2015 14:31:19 +0000 Subject: [PATCH] Work on multi-domain support in IDE and apps-proxy --- node_modules/c9/urls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node_modules/c9/urls.js b/node_modules/c9/urls.js index ec134340..04ca1edb 100644 --- a/node_modules/c9/urls.js +++ b/node_modules/c9/urls.js @@ -54,6 +54,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) { if (targetHost.match(/^(ide|vfs)./) && !targetBaseUrlPattern) errorLogger.log(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { sourceBaseUrlPattern: sourceBaseUrlPattern }); + if (targetHost.match(/^(ide|vfs)./)) + console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost); return replaceDomain(targetBaseUrlPattern || sourceBaseUrlPattern, targetHost) .replace(/\/$/, ""); };