I tried to convert a url with backslashes into forward slashes but it showing me result like this : C:inetpubwwwrootmyprojectpdf,
var path = "C:\inetpub\wwwroot\myproject\pdf";
console.log(path);
var path2 = path.replace(/\\/g, "/");
console.log(path2);
seems backslashes url need to escape, I tried but failed.