Merge "RIFT-16172: Project switch does not affect polling and socket pages." into...
[osm/UI.git] / skyquake / framework / core / api_utils / sockets.js
index 0cd4918..2e6779c 100644 (file)
@@ -92,7 +92,6 @@ Subscriptions.prototype.subscribe = function(req, callback) {
     var a = url.resolve(origin, req.baseUrl);
     var b = url.resolve(a, URL);
     URL = b;
-    console.log('DEBUG URL IS', URL);
   } else {
     protocol = protocol[1]
   }
@@ -284,7 +283,7 @@ function PollingSocket(url, req, interval, config) {
 
   var pollServer = function() {
     Request({
-      url: url,
+      url: utils.projectContextUrl(req, url),
       method: config.method || 'GET',
       headers: requestHeaders,
       json: config.payload,