diff --git a/dist/templates/prefetch.mustache b/dist/templates/prefetch.mustache index 968be0b6..6ec2afe3 100644 --- a/dist/templates/prefetch.mustache +++ b/dist/templates/prefetch.mustache @@ -54,7 +54,7 @@ resList.forEach(function(resource) { if (typeof resource === 'string') { var fullPath = staticsFullPath; - if (hasDynamicContent && dynamicContentFiles.includes(resource)) { + if (hasDynamicContent && dynamicContentFiles.includes(resource.slice(1))) { fullPath = dynamicContentPath + '/'; } var splitRes = resource.split('.'); diff --git a/src/templates/prefetch.mustache b/src/templates/prefetch.mustache index 968be0b6..6ec2afe3 100644 --- a/src/templates/prefetch.mustache +++ b/src/templates/prefetch.mustache @@ -54,7 +54,7 @@ resList.forEach(function(resource) { if (typeof resource === 'string') { var fullPath = staticsFullPath; - if (hasDynamicContent && dynamicContentFiles.includes(resource)) { + if (hasDynamicContent && dynamicContentFiles.includes(resource.slice(1))) { fullPath = dynamicContentPath + '/'; } var splitRes = resource.split('.');