diff --git a/lib/manager/v2/Path.js b/lib/manager/v2/Path.js index e676a9dc..98d1188f 100644 --- a/lib/manager/v2/Path.js +++ b/lib/manager/v2/Path.js @@ -13,7 +13,7 @@ var Path = (function () { this.paths = path.paths.filter(function (x) { return true; }); // clone else this.paths = path; - this.paths = this.paths.filter(function (p) { return p.length > 0; }); + this.paths = this.paths.filter(function (p) { return p.length > 0; }).map(function (s) { return decodeURIComponent(s); }); } Path.prototype.isRoot = function () { return this.paths.length === 0 || this.paths.length === 1 && this.paths[0].length === 0; diff --git a/src/manager/v2/Path.ts b/src/manager/v2/Path.ts index cf890263..ca40e965 100644 --- a/src/manager/v2/Path.ts +++ b/src/manager/v2/Path.ts @@ -18,7 +18,7 @@ export class Path else this.paths = path as string[]; - this.paths = this.paths.filter((p) => p.length > 0); + this.paths = this.paths.filter((p) => p.length > 0).map((s) => decodeURIComponent(s)); } isRoot() : boolean