diff --git a/core/lib/specUtils.js b/core/lib/specUtils.js
index <HASH>..<HASH> 100644
--- a/core/lib/specUtils.js
+++ b/core/lib/specUtils.js
@@ -99,13 +99,13 @@ module.exports.getSpecFromDir = function(dirPath, specFiles) {
  */
 module.exports.getFullPathToSpec = function(urlPath){
     var pathToSpec = parseSpecUrlPath(urlPath).pathToSpec;
-
+    var cleanPath = urlPath.replace(/\/+$/, '').replace(/\//, '');
     var specPath = path.join(global.app.get('user'), pathToSpec).replace(/\\/g, '/');
 
     // Including non-standard paths, outside default static route
     global.opts.core.common.includedDirs.forEach(function(item){
-        if (urlPath.split('/')[1] === item) {
-            specPath = specPath.replace('/'+ global.opts.core.common.pathToUser + '/', '/');
+        if (cleanPath.split('/')[0] === item) {
+            specPath = specPath.replace('/' + global.opts.core.common.pathToUser + '/' + cleanPath, '/' + cleanPath);
         }
     });
fix included dirs rendering in sourcejs as npm module set-up