diff --git a/lib/src/unit/ViewEngine.ts b/lib/src/unit/ViewEngine.ts index 404849b..0bd36d0 100644 --- a/lib/src/unit/ViewEngine.ts +++ b/lib/src/unit/ViewEngine.ts @@ -187,7 +187,7 @@ export default class ViewEngine extends LifecycleUnit { // Generate the partial name. // This is done by taking the relative path from the partials dir, removing the suffix, // and replacing directory separators with the standard : identifier. - let partial_name = entry.path.replace(partials_path, '').slice(0, -1 * (this.get_file_extension()).length) + let partial_name = entry.path.replace(partials_path.to_local, '').slice(0, -1 * (this.get_file_extension()).length) if ( partial_name.startsWith('/') ) partial_name = partial_name.slice(1) partial_name = partial_name.replace(/\//g, ':')