Fix for local paths with Unix / Windows Support

Second try at fixing issue #1272, now with added Unix support.
This commit is contained in:
Nir Azuelos
2013-04-16 23:21:30 +03:00
parent bd31c7a4c3
commit ef6f9123ec

View File

@@ -214,7 +214,7 @@ function extractUrlParts(url, baseUrl) {
if (!baseUrlParts) {
throw new Error("Could not parse page url - '"+baseUrl+"'");
}
urlParts[1] = baseUrlParts[1] || "";
urlParts[1] = urlParts[1] || baseUrlParts[1] || "";
if (!urlParts[2]) {
urlParts[3] = baseUrlParts[3] + urlParts[3];
}